If what you are trying to do is deal with a screen based app to pause in a certain part of a screen while it's being painted, I'm pretty sure that is not possible. Anything screen based will have escape sequences to position things and an input screen is drawn as one entity, not as a series of lines so I don't think you can do what you are trying to do in this case.