6530 Programmer's Guide
Conversational Mode Operation
6530 Programmer’s Guide
2-21
When p1 is set to 0, the escape sequence must be followed by the number
of pairs of hexadecimal digits specified by the p2 and p3 range. For
example, if p2 is set to 4 and p3 is set to 6, the escape sequence must be
followed by three pairs of hexadecimal digits:
Esc - 0;4;6 q 04 40 17
The above sequence sets the fourth, fifth, and sixth entries in the color
map table to the bit patterns defined by the hexadecimal digits 04, 40, and
17, respectively. To access those table entries and set the attributes on the
screen, your application must send the following escape sequences:
Esc 6 # Sets attributes to fourth table entry (04)
Esc 6 $ Sets attributes to fifth table entry (40)
Esc 6 % Sets attributes to sixth table entry (17)
In the above example, the remaining table entries (1 through 3 and 7
through 32) were not set. Any Esc 6 or Esc 7 attribute character that
accesses (indexes) these entries will use the default mapping scheme.
Read Color Mapping Table (Esc - v)
An additional color-mapping requirement is to return the current color
mapping table as it pertains to the standard Esc 6 video attributes. The
host sends the sequence with the following format:
Esc - v
1B 2D 76 (hex values)
The 6530 responds with:
SOH 0
data
CR
where:
SOH is start of header (01H)
0 is an ASCII 0 (hex value 30)
data
are the data pairs
CR is the control character (0DH) that terminates the message in
conversational mode.
If the PC does not support color, the escape sequence is ignored. The data
field consists of 64 ASCII hex values corresponding to the current values
stored in the color mapping table - 2 hex values per attribute value; 03
represented by 30 hex and 33 hex.