^[control-codes
live in libghostty-vt

Escape sequences

View as Markdown

ESC followed by one or more bytes: the oldest kind of multi-byte sequence.

APC Application Program Command
CSI Control Sequence Introducer CSI Pm Pi Pf …
DCS Device Control String DCS Pm Pi Pf Pt ST …
DECALN Screen Alignment Test ESC # 8 …
DECBI Back Index ESC 6 …
DECDHLB Double-Height Line, Bottom Half
DECDHLT Double-Height Line, Top Half
DECDWL Double-Width Line ESC # 6 …
DECFI Forward Index
DECKPAM Keypad Application Mode ESC = …
DECKPNM Keypad Numeric Mode
DECRC Restore Cursor
DECSC Save Cursor ESC 7 …
DECSWL Single-Width Line
EPA End of Guarded Area
HTS Horizontal Tabulation Set ESC H …
LS2 Locking Shift Two ESC n …
LS3 Locking Shift Three
NEL Next Line ESC E …
PM Privacy Message
RI Reverse Index ESC M …
RIS Reset to Initial State ESC c …
SOS Start of String ESC X Pt ST …
SPA Start of Guarded Area ESC V …
SS2 Single Shift Two ESC N …
SS3 Single Shift Three
ST String Terminator ST …
Every example on these pages runs in your browser, in libghostty-vt compiled to WebAssembly.