Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 146

Advertising
background image

Function Reference 4-105

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/33-key printers,
values are 0-3. For 8-row/48-key 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);

Advertising