6530 Programmer's Guide
Block Mode Operation
6530 Programmer’s Guide
3-29
To specify the 8-bit entries in the table, your application must send pairs
of ASCII encoded hexadecimal digits whose binary values represent the
8-bit patterns. For example, the hexadecimal digits 04 represent the
following bit pattern:
0000 0100
This bit pattern sets the foreground color to red, the background color to
black, the intensity to low, and blinking to off. You can use the 6530
configuration utility for the appropriate operating system to verify your
color selection and color bit patterns. See the PC6530 user’s guide for
information about the PC6530 configuration utility.
The lower 5 bits from the Esc 6 or Esc 7 attribute character are used as an
index into the table, which is 0-based. For example, the # character, with
a bit pattern of 00011 in the lower 5 bits, specifies the fourth entry in the
table. The hexadecimal digits you set for the fourth table entry defines the
actual video attributes displayed when the 6530 receives an Esc 6 #
sequence.
The format of the Esc - q escape sequence is as follows:
Esc -
pl
;[
p2
];[
p3
] q
pairs of hex digits
where:
p1
is an ASCII digit that specifies whether the color map table is to
be set or reset. A value of 0 sets the color map table as defined by the
pairs of hexadecimal digits following the escape sequence. A value
of 1 resets the color map table to the default mapping scheme, which
uses the colors selected in the 6530 initialization file. When the value
of p1 is 1, the p2 and p3 parameters are ignored.
p2
is a series of ASCII digits, from 1 to 32, that specify the start-of-
index location for the table entries to be set. For example, 1 specifies
the first entry in the table. If you omit the parameter or specify a
value outside the range of 1 - 32, the default value 1 is used.
p3
is a series of ASCII digits, from 1 to 32, that specify the end-of-
index location for the table entries to be set. For example, 32
specifies the last entry in the table. If you omit the parameter or
specify a value outside the range of 1 to 32, the default value 32 is
used.