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,
Parameters
lpuchChr
lpuchAttr
sPage
Return Values
None
Example
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
unsigned char ucCharacter = 32;
unsigned char ucAttribute = 32;
vidSetPage(0);
vidPutCursor(0, 0, 0);
vidReadCA(&ucCharacter, &ucAttribute, 0);
vidScroll(0, 0, 7, 19, 0, 0x07);
4-104
Programmer's Manual
unsigned char far* lpuchAttr,
short sPage);
A variable pointer to the character.
A variable pointer to the character's attribute.
Returned values are:
0x07
Normal video
0x70
Reverse video
The display page. For 4-row printers, values are
3
. For 8-row printers, values are
0-1
.
// Character at position
// Attribute at position
// Set page
// Move cursor
// Read char and
// attribute
// Clear screen
0-