in reply to scalar or sub that can tell me the terminal print offset ?
If your terminal has a VT100 mode, then you can use esc[6n to query the current cursor position.
The device should respond with e[yyy;xxxR; where yyy is the line number on the screen and xxx is the column within the line. (e represent 'escape'.)
How you obtain the report from the terminal without it printing on screen or moving the cursor is a trick I remember solving when I used to use a real VT100.
But the (long faded) memory only tells me I solved it -- not how.
|
|---|