4-106 Programmer’s Manual
v i d R e a d C u r s o r
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);
}
Summary of Contents for Gold 6037EX
Page 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Page 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Page 10: ...viii Table of Contents ...
Page 30: ...2 16 Programmer s Manual ...
Page 36: ...3 6 Programmer s Manual ...
Page 154: ...4 118 Programmer s Manual ...
Page 228: ...14 Index ...
Page 229: ......
Page 230: ......