![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
accuterminal
Newbie
Joined: June 02 2015 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: Get current cursor position on terminal screen?Posted: June 03 2015 at 7:37am |
|
I'd like to grab data off the line where the user has the cursor
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: June 04 2015 at 9:58am |
|
Hello -
Depending on the terminal emulation you are running you may be able to use an escape sequence to send the cursor line to the host. For example, Wyse 50/60 has an escape sequence to send the contents of the row where the cursor is positioned, from column 1 through the cursor location, back to the host with a CR at the end. This sequence is documented in the AccuTerm 7 Help, AccuTerm 7 Reference chapter, Wyse Programming topic, "Printer Control and Terminal Reports" section. Otherwise you could use a script to read the screen text and send it back to the host. For example:
In the GetText() method, the "0" is the starting column. The other arguments are missing, using the defaults of "current row", "last column" and "all text". Thanks, Pete |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |