1 | VT-52 Control Codes with Atari Extensions
|
---|
2 | -----------------------------------------
|
---|
3 |
|
---|
4 | #define ESC '\033' /* or 0x1B if you prefer */
|
---|
5 |
|
---|
6 | ESC A Cursor Up (stops at top)
|
---|
7 | ESC B Cursor Down (stops at bottom)
|
---|
8 |
|
---|
9 | ESC C Cursor Forward (stops at EOL)
|
---|
10 | ESC D Cursor Backward (stops at BOL)
|
---|
11 |
|
---|
12 | ESC E Clear Screen and Home Cursor
|
---|
13 | ESC H Home Cursor (home = 1,1 = top,left)
|
---|
14 |
|
---|
15 | ESC I Reverse Index (cursor up with scroll at top)
|
---|
16 |
|
---|
17 | ESC J Erase to end of page (including cursor position)
|
---|
18 | ESC K Clear to end of line (including cursor position)
|
---|
19 |
|
---|
20 | ESC L Insert Line (moves cursor line and lines below down)
|
---|
21 | ESC M Delete Line (deletes cursor line and moves lines below up)
|
---|
22 |
|
---|
23 | ESC Y Position Cursor (followed by row, col, 1-origin binary)
|
---|
24 |
|
---|
25 | ESC b Set Foreground Color (4 lsbs of next byte are color index)
|
---|
26 | ESC c Set Background Color (4 lsbs of next byte are color index)
|
---|
27 |
|
---|
28 | ESC d Erase beginning of display (up to and including cursor)
|
---|
29 |
|
---|
30 | ESC e Enable cursor
|
---|
31 | ESC f Disable cursor
|
---|
32 |
|
---|
33 | ESC j Save cursor position
|
---|
34 | ESC k Restore cursor position
|
---|
35 |
|
---|
36 | ESC l Erase entire line (moves cursor to column 1)
|
---|
37 | ESC o Erase beginning of line (including cursor position)
|
---|
38 |
|
---|
39 | ESC p Enter Reverse Video Mode
|
---|
40 | ESC q Exit Reverse Video Mode
|
---|
41 |
|
---|
42 | ESC v Wrap at End of Line
|
---|
43 | ESC w Discard at End of Line
|
---|