4-104 Programmer’s Manual
v i d R e a d C A
Description
Reads a character and attribute from the current cursor location
for the specified display page.
Syntax
void far vidReadCA(unsigned char far* lpuchChr,
unsigned char far* lpuchAttr,
short sPage);
Parameters
lpuchChr
A variable pointer to the character.
lpuchAttr
A variable pointer to the character’s attribute.
Returned values are:
0x07
Normal
video
0x70
Reverse
video
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 char ucCharacter = 32;
// Character at position
unsigned char ucAttribute = 32;
// Attribute at position
vidSetPage(0);
// Set page
vidPutCursor(0, 0, 0);
// Move cursor
// Read char and
//
attribute
vidReadCA(&ucCharacter, &ucAttribute, 0);
vidScroll(0, 0, 7, 19, 0, 0x07);
// Clear screen
Содержание Gold 6037EX
Страница 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Страница 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Страница 10: ...viii Table of Contents ...
Страница 30: ...2 16 Programmer s Manual ...
Страница 36: ...3 6 Programmer s Manual ...
Страница 154: ...4 118 Programmer s Manual ...
Страница 228: ...14 Index ...
Страница 229: ......
Страница 230: ......