An ANSI escape sequence is a series of characters, beginning with an escape character. These are used to define funcions for MS-DOS. Specifically you can change graphics funciotns and affect the movement of the cursor. CODE DESCRIPTION n Numeric parameter - a decimal number specified with ASCII digits. s Selective parameter - a decimal number used to select a subfunction. More than one may be selected by separating them with semicolons. l Line paramenter - a decimal number specified with ASCII digits. c Column parameter - a decimal number specified with ASCII digits. SEQUENCE FUNCTION ESC[l;cH Cursor Position (CUP); default is 1;1 ESC[l;cF Horizontal and Vertical Position (HVP); default is 1;1 ESC[nA Cursor Up (CUU); ignored if at the top ESC[nB Cursor Down (CUD); ignored if at the bottom ESC[nC Cursor Forward (CUF); ignored if at the far right ESC[nD Cursor Backward (CUB); ignored if at the far left ESC[6n Device Status Report (DSR); outputs an RCP sequence ESC[s Save Cursor Position (SCP); restored with RCP ESC[u Restore Cursor Position (RCP); restored to SCP value ESC[2J Erase Display (ED); erases screen and puts cursor at home ESC[K Erase Line (EL); erases from cursor to end of line ESC[s;...;sM Set Graphics Rendition (SGR); calls graphics funcions specified by the numeric parameters; functions remain until next SGR sequence: 0 Al attributes off 1 Bold on 2 Faint on 3 Italic on 5 Blink on 6 Rapid blink on 7 Reverse video on 8 Concealed on 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White 40 Black 41 Red 42 Green 43 Yellow 44 Blue 45 Magenta 46 Cyan 47 White 48 Subscript 49 Superscript ESC[=sh | ESC[=h | These four formats are interchangeable ESC[=0h | Set Mode (SM) ESC[?7h | Changes screen width or type as follows: 0 40 x 25 b&w 1 40 x 25 color 2 80 x 25 b&w 3 80 x 25 color 4 320 x 200 color 5 320 x 200 b&w 6 640 x 200 b&w 7 Wraps at end of each line ESC[=sl | These four formats are interchangeable ESC[=l | Reset Mode (RM) ESC[=01 | Parameters are the same as for SM, except parameter 7 ESC[?7l | resets the mode that causes wrapping at eol