| Sequence |
Function |
| Esc A |
Save cursor position |
| Esc [n]B |
Move cursor backward |
| Esc [f][;[b]]C |
Set text color |
| Esc [n]D |
Move cursor down |
| Esc E |
Clear to end of line |
| Esc [n]F |
Move cursor forward |
| Esc G |
Clear to beginning of line |
| Esc [n]H |
Delete line |
| Esc 1I |
Inverse on |
| Esc I or Esc 0I |
Inverse off |
| Esc [n]J |
Insert line |
| Esc [n]K |
Delete character |
| Esc [r][;[c]]L |
Set cursor location |
| Esc N |
Clear line |
| Esc O |
Load cursor position |
| Esc [n]P |
Insert character |
| Esc R |
Reset attributes |
| Esc S |
Clear screen |
| Esc 1T |
Save text colors |
| Esc T or Esc 0T |
Restore text colors |
| Esc [n]U |
Move cursor up |
| Esc [n]X |
Clear spaces |
The following example turns inverse on, prints "Hello" and then turns inverse off (Note: escape sequences must be printed
using the + operator without any intervening print separators such as ; (semicolon)):
PRINT CHR$(27)+"1I";"HELLO";CHR$(27)+"0I"