HTBasic Help
×
Menu
Index

Screen Control Codes

 
The following control characters embedded in an output string in PRINT and DISPLAY can be used to control behavior and effects of the display screen:
 

Output Area

 
CHR$(7)
Ring the bell
CHR$(8)
Move the print location back one space
CHR$(10)
Move the print location down one line
CHR$(12)
Print two line feeds, scroll the output area so that the next line is at the top of the output area
CHR$(13)
Move the print location to column one
 

Display Line

 
CHR$(12)
Clears the DISP line
CHR$(13)
Moves the DISP line cursor to column one and clears the DISP line when the next character is sent to the DISP line
 

Display Effects:

 
CHR$(128)
All effects off
CHR$(129)
Inverse video on
CHR$(130)
Blinking video on
CHR$(131)
Inverse and blinking video on
CHR$(132)
Underline mode on
CHR$(133)
Underline and Inverse video on
CHR$(134)
Underline and Blinking video on
CHR$(135)
Underline, Inverse, and Blinking  video on
CHR$(136)
White
CHR$(137)
Red
CHR$(138)
Yellow
CHR$(139)
Green
CHR$(140)
Cyan
CHR$(141)
Blue
CHR$(142)
Magenta
CHR$(143)
Black
 
Because some computers use character sets with character values that conflict with these characters, CONTROL CRT,100 moves these display effects control characters to the range CHR$(16) through CHR$(31).