TE_get_cursor_pos
Example: TE_get_cursor_pos | Cursor Functions |
Returns the current location of the cursor in the terminal screen.
int TE_get_cursor_pos( int *col, int *row );
Outputs
col, row | The column and row coordinates of the cursor on the screen. |
Note that for either output parameter, you can specify NULL if you do not need the value.
TE_get_cursor_pos returns the coordinates of the current cursor position on the terminal emulator screen.
Return Values
This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.
Parameterization
You cannot use standard parameterization for any arguments in this function.