4.1 Supported Escape Sequences

Sequence Description Priority
ESC[H Cursor Home P0
ESC[J Erase to End of Screen P0
ESC[K Erase to End of Line P0
ESC[A Cursor Up P0
ESC[B Cursor Down P0
ESC[C Cursor Right P0
ESC[D Cursor Left P0
ESC[;H Cursor Position P0
ESC[;f Cursor Position (alternate) P0
ESC[s Save Cursor P0
ESC[u Restore Cursor P0
ESC[?25h Show Cursor P0
ESC[?25l Hide Cursor P0
ESC[0m Reset Attributes P0
ESC[1m Bold P0
ESC[4m Underline P0
ESC[7m Reverse Video P0
ESC[30-37m Set Foreground Color P0
ESC[40-47m Set Background Color P0
ESC[1;30-37m Bright Foreground P0
ESC[1;40-47m Bright Background P0
ESC[2J Clear Entire Screen P0
ESC[2K Clear Entire Line P0
ESC[r Set Scroll Region P1
ESC[?6c Get Cursor Position P2
ESC[?25h/l Cursor Blink P2