Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

ANSI escape code

0
Posted

ANSI escape code

0

ANSI escape sequences are used to control text formatting and other output options on text terminals. In this context, ANSI refers to the ANSI X3.64 standard (which was withdrawn in 1997). It was replaced by ISO/IEC 6429, which is equivalent to ECMA-48. Most of these escape sequences start with the characters ESC (ASCII decimal 27/hex 0x1B/octal 033) and [ (left bracket). This sequence is called CSI for Control Sequence Introducer (or Control Sequence Initiator). There is a single-character CSI (155/0x9B/0233) as well. The ESC+[ two-character sequence is more often used than the single-character alternative, for details see C0 and C1 control codes. Devices supporting only ASCII (7-bits), or which implement 8-bit code pages which use the 0x80–0x9F control character range for other purposes will recognize only the two-character sequence. Though some encodings use multiple bytes per character, in this topic all characters are single-byte.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.