CONTROL CRT Registers

 
CONTROL CRT register;value  ! sets the status or value for the following registers:
 
0 - Set the current Print Column. The left most column is one.
1 - Set the current Print Row (line). The output area top line is one.
2 - Set Insert/Replace Mode. 1 = insert mode, 0 = replace mode.
3 - This register is undefined in both HTBasic and HP BASIC.
4 - Set/Reset Display Functions Mode. 1 = Control characters (including attribute characters CHR$(128) to CHR$(158)) are displayed instead of executed. 0 = control characters execute normally and are not displayed. This command is equivalent to the DISPLAY FUNCTIONS statement.
5 - Set the default ALPHA screen color (automatically sets registers 15, 16, and 17). This command is equivalent to the ALPHA PEN statement. For bit-mapped displays (CRTB), specify a pen number, 0 to 15. For alpha displays (CRTA), specify a color attribute character, 136 to 143:
 
Value
Color
136
White
137
Red
138
Yellow  
139
Green
140
Cyan
141
Blue
142
Magenta
143
Black
 
6 - This register is undefined in both HTBasic and HP BASIC.
7 - The control register that extends the functionality of the SUSPEND INTERACTIVE
 
Value
Meaning
0
Enable all keyboard keys.
1
Disable all keyboard keys but RESET key.
2
Disable RESET key only.
3
Disable all keyboard keys.
 
8 - Set the current print column of the display line. The left most column is one.
9 - This register is undefined in both HTBasic and HP BASIC.
10 - Set cursor visibility. 1 = cursor on. 0 = cursor off.
11 - CRT character mapping is not supported by HTBasic.
12 - Turn Softkey Menus (Function key labels) on or off.
 
Value
Meaning
0
Same as 2, except that when running the menus are displayed only if an ON KEY is active in the current menu.
1
Softkey menus off. Same as KEY LABELS OFF.
2
Softkey menus on. Same as KEY LABELS ON.
13
Set the CRT Height. Sets the number of rows on the CRT that are actually used. The number includes the softkey menus, message line, input line, display line, a blank line, and the output area. Thus a value of 9 (the minimum allowed) provides for two lines in the output area.
14
The Display Replacement Rule is not supported by HTBasic.
15
Set the PRINT/DISP Color. Like CONTROL 5, but only affects the output area and the display line. This command is equivalent to the PRINT PEN statement.
16
Set the Softkey Menu Color. Like CONTROL 5, but only affects the softkey menu color. This command is equivalent to the KEY LABELS PEN statement.
17
Set the Input Line Color. Like CONTROL 5, but only affects the input and message lines. This command is equivalent to the KBD LINE PEN statement.
18
The ALPHA Write-enable Mask is not supported by HTBasic. Use SEPARATE or MERGE ALPHA instead.
19
This register is undefined in both HTBasic and HP BASIC.
20
The ALPHA Display-enable Mask is not supported by HTBasic. Use SEPARATE or MERGE ALPHA instead.
21
Select Compatibility Display is not supported by HTBasic. Use PLOTTER IS 3 or 6 instead.
100
Set alternate Attribute Control range. The characters in the range CHR$(128) to CHR$(143) normally control text attributes and colors.Unfortunately, some character sets, including PC code pages use this range for international character support. This register can be used to reassign the attribute and color control characters to the range CHR$(16) to CHR$(31), leaving the international characters available for display. 1 = Use the alternate range CHR$(16) to CHR$(31) for attribute control. 0 = Use the normal range CHR$(128) to CHR$(143) for attribute control. This alternate range applies only to values used with the CHR$ function. Values used with CRT registers and the ALPHA PEN, etc. statements are left unchanged.
101
Set font size. This register is not supported by HTBasic. Use the -FN command line switch instead.
110
Toggle dithering on or off: 0 = Dither (default), if supported by system or 1 = No dither.