HTBasic Help
×
Menu
Index

Attribute Character Conflict

 
HP BASIC uses the range CHR$(128) to CHR$(143) for attribute and color control characters. This range is used by some character sets for various international characters. To allow use of characters in this range, HTBasic will move attribute and color control characters from this range to CHR$(16) to CHR$(31) with the statement:
 
CONTROL CRT,100;1
 
To restore the normal range, use
 
CONTROL CRT,100;0
 
When HTBasic is run in Japanese mode, CONTROL CRT,100;1 is executed automatically.
 
CONTROL CRT,100 does not affect values used with CONTROL registers, only values PRINTed or OUTPUT to the CRT. This statement is an enhancement to HTBASIC and will return an error if executed on a Series 200/300 computer.
 
The following table shows the attribute and color control characters for both the normal and alternate ranges. Remember that not all attributes are supported on every display.
 
Attribute
Normal
Alternate
None
128
16
Inverse
129
17
Blinking
130
18
Inverse and Blinking
131
19
Underline
132
20
Underline and Inverse
133
21
Underline and Blinking
134
22
Underline, Inverse, and Blinking
135
23
 
Attribute
Normal
Alternate
White
136
21
REd
137
25
Yellow
138
26
Green
139
27
Cyan
140
28
Blue
141
29
Magenta
142
30
Black
143
31