Actions

::ANSI escape code

::concepts

Color::style    Black::white    Cursor::sequence    Anchor::ascii    Escape::standard    Colors::codes

{{#invoke:redirect hatnote|redirect}} {{ safesubst:#invoke:Unsubst||$N=Use dmy dates |date=__DATE__ |$B= }} In computing, ANSI escape codes (or escape sequences) are a method using in-band signaling to control the formatting, color, and other output options on video text terminals. To encode this formatting information, certain sequences of bytes are embedded into the text, which the terminal looks for and interprets as commands, not as character codes.

ANSI codes were introduced in the 1970s and became widespread in the minicomputer/mainframe market by the early 1980s. They were used by the nascent bulletin board system market to offer improved displays compared to earlier systems lacking cursor movement, leading to even more widespread use.

Although hardware text terminals have become increasingly rare in the 21st century, the relevance of the ANSI standard persists because most terminal emulators interpret at least some of the ANSI escape sequences in the output text. One notable exception is the win32 console component of Microsoft Windows.


ANSI escape code sections
Intro  History   Support    Sequence elements    Non-CSI codes    CSI codes    Colors   Examples  Invalid and ambiguous sequences in use  See also  Notes  External links  

PREVIOUS: IntroNEXT: History
<<>>