ESC [ parameter(s) codewhere ESC is the ASCII ``Escape'' character ('\033' or '\x1B'), [ is a single open square bracket character, parameter(s) is a numeric parameter or semicolon-separated list of numeric parameters, and code is a single character indicating the action to be performed. A (brief and incomplete) list of codes is:
H | move cursor; the two parameters are the row and column to move to |
J | clear screen; the parameter 2 means clear the whole screen |
m | set graphic rendition (see parameter list below) |
0 | return to normal (no attributes) |
1 | bold |
4 | underline |
7 | inverse video |
31 | red |
32 | green |
33 | yellow |
34 | blue |
35 | magenta |
36 | cyan |