Paxar Gold 6037EX User Manual Page 142

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 141
4-106 Programmer’s Manual
vidReadCursor
Description
Retrieves the specified display page’s current cursor location.
Syntax
void far vidReadCursor(unsigned short far* lpusRow,
unsigned short far* lpusCol,
short sPage);
Parameters
lpusRow
A variable pointer to the row. For 4-row printers,
values are
0-3
. For 8-row printers, values are
0-7
.
lpusCol
A variable pointer to the column. Values are
0-19
.
sPage
The display page. For 4-row printers, values are
0-3
.
For 8-row printers, values are
0-1
.
Return Values
None
Example
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
unsigned short usRow = 0; // Row position
unsigned short usColumn = 0; // Column position
vidScroll(0, 0, 3, 11, 0, 0x07); // Clear screen
vidPutCursor(0, 0, 0); // Move cursor
vidReadCursor(&usRow, &usColumn, 0); // Read position
printf("Row position is %d", usRow); // Display results
printf("\nColumn position is %d", usColumn);
}
Page view 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 229 230

Comments to this Manuals

No comments