Control sequences

Control sequences are strings of characters embedded into the text as the cursor, display, and presentation functions.

ANSI control

An example of an ANSI escape sequence to set a white font and black background color.

←[0;37;40m

ANSI art uses control sequences for its colorization and cursor positioning, as do remote terminals used by many Linux and Unix tools such as xterm.

Common name Official Partial support Notes
DOS ANSI ANSI.SYS Yes An Microsoft DOS system driver commonly used with ANSI art
ASCII C0 ECMA-61 Yes Also known as ASCII control codes
ANSI ECMA-482 Yes Also known as ANSI escape codes

  1. Historically known as ANSI X3.4. 

  2. Traditionally known as ANSI X3.64, VT-100, or ISO 6428