CursorPos (Read/Write) |
Top Previous Next |
The CursorPos property retrieves and sets the cursor's current screen position.
Syntax
[integer =] Display.CursorPos [= cursor position]
Remarks
The cursor position parameter is an integer ranging from 1 up to the total number of rows, multiplied by the total number of columns available for the terminal type specified.
The cursor position parameter can be calculated by multiplying the total number of columns by the cursor's row number minus one, and then adding the cursor's column number:
Cursor position = Total columns * (cursor's row number - 1) + cursor's column number
|