ANSI escape code

From Just Solve the File Format Problem
Revision as of 16:05, 15 March 2017 by Jsummers (Talk | contribs)

Jump to: navigation, search
File Format
Name ANSI escape code
Ontology

The ANSI escape codes (or ANSI codes, control codes, control sequences, etc.) are a set of standard byte sequences which cause special things to happen when interpreted by certain character-based terminals and other output devices. For example, a code might change the text color, or move the cursor. These codes (or some subset of them) are used in ANSI Art and similar types of files.

Most codes produce graphical effects, but a few are intended for sound, or other functions. There are also codes used for input (e.g. keyboard input), but such codes are unlikely to be found in data files.

Contents

Extended colors

The Unix terminal world and the ANSI Art world unfortunately decided on different ways of extending ANSI codes to support more colors.

ANSI Art uses codes like "Esc [ ... t". See [1].

Terminal software uses codes like "Esc [ 38; ... m" and "Esc [ 48; ... m". See [2], and the Wikipedia article.

See also

Specifications

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox