Moves the cursor to the specified column within the line.
Scope: View
Syntax
query cursorpos
set cursorpos ColumnNumber
Option
ColumnNumber |
The column where the cursor is to be positioned. |
Description
The cursorpos parameter moves the cursor to the specified column within the line, regardless of the window size. The columns that form the prefix area are assigned negative numbers. If the new position is beyond what is currently displayed, the file view will scroll right or left to display it.
| Note: | A Tab character is counted as a single column in the line. |
Example
To set the cursor to column 34, type:
set cursorpos 34
If column number 34 is not currently displayed, the file view is scrolled to display the new cursor position.
API Return Codes
-2 |
The number specified was either outside the valid range or not an integer. Issue the command again using a valid number. |
![]()
cursorcol Parameter
cursorrow Parameter
tabcursorpos Parameter
