#124710 - 2004-08-12 10:01 AM
Re: cursor control/movement
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
I mean, if he placed the text on the screen with AT(), and was careful not to let it overflow and scroll, he would know where to put the checkmark AT().
My guess is that the screen output will comprise both text from the script, and output from commands that are run.
To know where he is he needs to capture the output (including errors) from the commands, work out the console size, displays the output using KiXtart and calculate the cursor position (taking into account screen scrolling).
He may well be handing control to a program which he cannot capture output from, so cannot determine where on the screen the cursor will be left.
It's pretty heavy stuff and guaranteed to fail in some cases.
FWIW I've always thought it would be useful to allow the AT() parameters to be optional, and/or have macros which return the cursor position. It's such a simple process I'm surprised it hasn't made it in despite repeated requests. Perhaps it just wasn't popular enough.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 405 anonymous users online.
|
|
|