Reads the current location of the physical cursor
| Call | |
| #include <vv_sys.h> | |
| void csr_rd(rowp, colp) | |
|
int *rowp |
Pointer to variable to contain row value |
| int *colp | Pointer to variable to contain column value |
| Returns
None. Values are placed in the variables pointed to in the call. |
|
| Description
PCDOS Systems: csr_rd() calls vid_int() to read the physical cursor location on the current video page via PC BIOS INT 10H, with AH = 3. The values obtained from this call are placed in the variables pointed to in the call. The normal setting for the video page is 0 (zero) unless you are using the additional memory pages available on the CGA, EGA, VGA, or PGA graphics adapters. OS/2 Systems: csr_rd() calls VioGetCurPos() to read the physical cursor location in the presentation space. The values obtained are placed in the variables pointed to in the call. If the cursor is currently hidden, the returned row is one row below the bottom of the physical screen, and the returned column is zero. Terminal-based Systems / PCDOS with GraphEx: csr_rd() places the contents of the internal global variables used to hold the row and column of the physical cursor in the locations specified by rowp and colp. If the cursor is currently hidden, the returned row is one row below the bottom of the physical screen, and the returned column is zero. |
|
| Cautions
Pointers to the row and column positions must be passed in call, not the variables themselves. Terminal-based Systems: Use of non-Vermont Views output routines (such as putchar(), puts(), printf(), etc.), will result in incorrect values being returned by this function until csr_mv(), csr_mvwn(), or csr_plwn() is called. |
|