Amos Professional Manual  Contents  Index

Text


These three commands are self-explanatory, and work in exactly the same way as CDOWN. their equivalent functions are listed below, and work in the same way as CDOWN$:

CUP$
function: return control character (30) to move cursor up one line
x$=Cup$

CLEFT$
function: return control character (29) to move cursor left one character
x$=Cleft$

CRIGHT$
function: return control character (28) to move cursor right one character
x$=Cright$

CLINE
instruction: clear some or all text on current cursor line
Cline
Cline number

This command is used to clear the line currently occupied by the text cursor. If CLINE is qualified by a number, then that number of characters get cleared, starting from the current cursor position and leaving the cursor exactly where it is. For example:

E> Print "Testing Testing Testing";
   Cmove -7,
   Cline 7
   Wait Key
   Cline

Tracking the text cursor
To track down the exact position of the text cursor, the following pair of functions may be used

XCURS
function: return the x-coordinate of the text cursor
x=Xcurs

YCURS
function: return the y-coordinate of the text cursor
y=Ycurs

In this way, a variable is created that holds the relevant coordinate of the cursor, in text format, and these two functions may be used independently or together. For example:

E> Locate 5,10: Print Xcurs; : Print Ycurs

MEMORIZE X/Y
instructions: save the x or y text cursor coordinates
Memorize X
Memorize Y

Back    Next
05.06.09