
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
98/226
DRAW.NO.
3.8.11
Change Attribute of the Characters Being Displayed
[Name]
pl_dspattr
[Syntax]
#include <pmclib.h>
short pl_dspattr(short * cntl);
[Arguments]
Input
*cntl: Control information
cntl[0] Start column (X) 0 to
cntl[1] Start line (Y) 0 to
cntl[2] Attribute
cntl[3] Number of columns
cntl[0]: Set a column position where to start changing the attribute (X = 0
and up).
cntl[1]: Set a line position where to start changing the attribute (Y = 0 and
up).
cntl[2]: Set a color and display attribute.
Normal: Color code + 0x00
Blink: Color code + 0x08
Reverse: Color code + 0x10
Color code: Black:0x00, Red:0x20, Green:0x40, Yellow:0x60,
Blue:0x80, Magenta:0xA0, Cyan:0xC0, White:0xE0
cntl[3]: Set the number of columns whose display attribute is to be
changed.
Output
---
[Return]
0: Normal completion.
5: The "*cntl" is invalid.
[Description]
This function changes the attribute (color, blink or reverse) of characters
already displayed on the screen. This function does not affect the current
display attribute that is set by pl_dspcolor().
[Related Function]
crt_settextattr()