Reading the Location of the Physical Cursor

You can read and save the location of the physical cursor with the physical cursor read function, csr_rd():

void csr_rd(rowp, colp)
 
int *rowp;
/* Pointer to variable for row position
*/
int *colp;
/* Pointer to variable for column position
*/

You must pass pointers to the variables that will hold the row and column positions. For example:

int csr_row;

int csr_col;

...

csr_rd(&csr_row, &csr_col);

The current screen coordinates of the physical cursor are placed in the variables csr_row and csr_col. These coordinates are relative to the physical screen, not to any window.


Home Contents Previous Next