https://jpsoft.com/help/ansiref.htm
<ESC>[rowsA Cursor up by rows <ESC>[rowsB Cursor down by rows <ESC>[colsC Cursor right by cols <ESC>[colsD Cursor left by cols <ESC>[row;colH Set cursor position (top left is row 1, column 1) <ESC>[2J Clear whole screen <ESC>[K Clear from cursor to end of line <ESC>[row;colf Set cursor position, same as "H" command <ESC>[attr1;attr2;...m Set display attributes; see table of attribute values below <ESC>[s Save cursor position (may not be nested) <ESC>[u Restore saved cursor position
The attribute values used for the m command are:
0 Restore all attributes to default 1 High intensity (bright) foreground color 2 Normal intensity foreground color 30..37 Foreground color 40..47 Background color
Foreground Code Background Code Color 30 40 Black 31 41 Red 32 42 Green 33 43 Yellow 34 44 Blue 35 45 Magenta 36 46 Cyan 37 47 White
Set bright red foreground without changing background:
echo %=e[31;1m
Set the display to bright cyan on blue, and clear the screen:
echo %=e[44;36;1m%=e[2J
Last updated 2019-12-06 at 22:57:14