ANSI Escape Codes

code type mnemonic description example
␛[0m SGR reset
Sample
␛[1m SGR bold
Sample
␛[1:2m SGR shadow
␛[10m SGR default font
Sample
␛[100m SGR bright black background
Sample
␛[101m SGR bright red background
Sample
␛[102m SGR bright green background
Sample
␛[103m SGR bright yellow background
Sample
␛[104m SGR bright blue background
Sample
␛[105m SGR bright magenta background
Sample
␛[106m SGR bright cyan background
Sample
␛[107m SGR bright white background
Sample
␛[11m SGR alternate font 1
Sample
␛[12m SGR alternate font 2
Sample
␛[13m SGR alternate font 3
Sample
␛[14m SGR alternate font 4
Sample
␛[15m SGR alternate font 5
Sample
␛[16m SGR alternate font 6
Sample
␛[17m SGR alternate font 7
Sample
␛[18m SGR alternate font 8
Sample
␛[19m SGR alternate font 9
Sample
␛[2m SGR dim
Sample
␛[20m SGR alternate font 10
Sample
␛[21m SGR double underline
Sample
␛[22m SGR reset bold/dim
Sample
␛[23m SGR reset italic/alternate font
Sample
␛[24m SGR reset underline
Sample
␛[25m SGR reset blink
Sample
␛[27m SGR reset reversed video
Sample
␛[28m SGR reset conceal/overstrike
Sample
␛[29m SGR reset strike-through
Sample
␛[3m SGR italic
Sample
␛[30m SGR black foreground
Sample
␛[31m SGR red foreground
Sample
␛[32m SGR green foreground
Sample
␛[33m SGR yellow foreground
Sample
␛[34m SGR blue foreground
Sample
␛[35m SGR magenta foreground
Sample
␛[36m SGR cyan foreground
Sample
␛[37m SGR white foreground
Sample
␛[38;2;<colorspace>;<r>;<g>;<b>m SGR set fg color (24-bit true color)
Sample
␛[38;5;<n>m SGR set fg color (256-color palette)
Sample
␛[39m SGR default fg color
Sample
␛[4m SGR underline
Sample
␛[4:0m SGR no underline
␛[4:1m SGR single underline
␛[4:2m SGR double underline
␛[4:3m SGR curly underline
␛[4:4m SGR dotted underline
␛[4:5m SGR dashed underline
␛[40m SGR black background
Sample
␛[41m SGR red background
Sample
␛[42m SGR green background
Sample
␛[43m SGR yellow background
Sample
␛[44m SGR blue background
Sample
␛[45m SGR magenta background
Sample
␛[46m SGR cyan background
Sample
␛[47m SGR white background
Sample
␛[48;2;<colorspace>;<r>;<g>;<b>m SGR set bg color (24-bit true color)
Sample
␛[48;5;<n>m SGR set bg color (256-color palette)
Sample
␛[49m SGR default bg color
Sample
␛[5m SGR slow blink
Sample
␛[51m SGR frame
Sample
␛[52m SGR encircle
Sample
␛[53m SGR overline
Sample
␛[54m SGR reset frame/encircle
Sample
␛[55m SGR reset overline
Sample
␛[58;2;<colorspace>;<r>;<g>;<b>m SGR set underline color (24-bit true color)
Sample
␛[58;5;<n>m SGR set underline color (256-color palette)
Sample
␛[59m SGR reset underline color
Sample
␛[6m SGR rapid blink
Sample
␛[7m SGR reverse video
Sample
␛[73m SGR superscript
Sample
␛[74m SGR subscript
Sample
␛[75m SGR reset super/subscript
Sample
␛[8m SGR conceal
Sample
␛[8:7m SGR overstrike
␛[9m SGR strike-through
Sample
␛[90m SGR bright black foreground
Sample
␛[91m SGR bright red foreground
Sample
␛[92m SGR bright green foreground
Sample
␛[93m SGR bright yellow foreground
Sample
␛[94m SGR bright blue foreground
Sample
␛[95m SGR bright magenta foreground
Sample
␛[96m SGR bright cyan foreground
Sample
␛[97m SGR bright white foreground
Sample
␛[<cols> @ CSI SL scroll left \u001b[1 @
␛[<cols> A CSI SR scroll right \u001b[1 A
␛[<height>;<width> B CSI GSM graphic size modification \u001b[100%,100% B
␛[<font>;<id> D CSI FNT font selection \u001b[0,0 D
␛[0 F CSI JFY justify: end justification
␛[1 F CSI JFY justify: word fill
␛[2 F CSI JFY justify: interword space
␛[3 F CSI JFY justify: letter space
␛[4 F CSI JFY justify: hyphenation
␛[5 F CSI JFY justify: flush left
␛[6 F CSI JFY justify: center
␛[7 F CSI JFY justify: flush right
␛[8 F CSI JFY justify: Italian hyphenation
␛[0 H CSI QUAD quad: flush left
␛[1 H CSI QUAD quad: flush left with leader
␛[2 H CSI QUAD quad: center
␛[3 H CSI QUAD quad: center with leader
␛[4 H CSI QUAD quad: flush right
␛[5 H CSI QUAD quad: flush right with leader
␛[1 I CSI SSU select size unit: international typographic standard
␛[2 I CSI SSU select size unit: decipoint (1/720 inch)
␛[3 I CSI SSU select size unit: didot
␛[4 I CSI SSU select size unit: mil (1/1000 inch)
␛[5 I CSI SSU select size unit: metric (0.01 mm)
␛[<height> J CSI GSS graphic size selection \u001b[12 J
␛[<interline>;<space> K CSI SPI spacing increment \u001b[12,6 K
␛[<width> L CSI TSS thin space specification \u001b[3 L
␛[<style> q CSI DECSCUSR set cursor style \u001b[2 q
␛[ t CSI DECSWBV set warning bell volume
␛[ u CSI DECSMBV set margin bell volume
␛[!p CSI DECSTR soft terminal reset
␛[<level>;<mode>"p CSI DECSCL select conformance level \u001b[64,1"p
␛[<attr>"q CSI DECSCA select character protection attribute \u001b[1"q
␛[<n>@ CSI ICH insert characters \u001b[1@
␛[<col>` CSI HPA horizontal position absolute \u001b[1`
␛[$p CSI DECRQM request ANSI mode
␛[$r CSI DECCARA change attributes in rectangular area
␛[$t CSI DECRARA reverse attributes in rectangular area
␛[$v CSI DECCRA copy rectangular area
␛[$x CSI DECFRA fill rectangular area
␛[$z CSI DECERA erase rectangular area
␛[<cols>a CSI HPR horizontal position relative \u001b[1a
␛[<rows>A CSI CUU move cursor up \u001b[1A
␛[<n>b CSI REP repeat character \u001b[1b
␛[<rows>B CSI CUD move cursor down \u001b[1B
␛[0c CSI DA device attributes: request primary device attributes
␛[>0c CSI DA device attributes: request secondary device attributes
␛[<cols>C CSI CUF move cursor forward \u001b[1C
␛[<row>d CSI VPA vertical position absolute \u001b[1d
␛[<cols>D CSI CUB move cursor back \u001b[1D
␛[<rows>e CSI VPR vertical position relative \u001b[1e
␛[<rows>E CSI CNL move cursor to next line \u001b[1E
␛[<row>;<col>f CSI HVP horizontal vertical position \u001b[1,1f
␛[<rows>F CSI CPL move cursor to previous line \u001b[1F
␛[0g CSI TBC tab clear: clear current column
␛[3g CSI TBC tab clear: clear all tabs
␛[<col>G CSI CHA move cursor character absolute \u001b[1G
␛[4h CSI SM set mode: insert mode (IRM)
␛[20h CSI SM set mode: automatic newline (LNM)
␛[<row>;<col>H CSI CUP move cursor position \u001b[1,1H
␛[0i CSI MC media copy (printer control): print screen
␛[4i CSI MC media copy (printer control): turn off printer controller mode
␛[5i CSI MC media copy (printer control): turn on printer controller mode
␛[<n>I CSI CHT move cursor horizontal tabulation \u001b[1I
␛[<cols>j CSI HPB horizontal position backward \u001b[1j
␛[0J CSI ED erase: from cursor to end of screen
␛[1J CSI ED erase: from cursor to beginning of screen
␛[2J CSI ED erase: entire screen
␛[3J CSI ED erase: entire screen and clear scrollback buffer
␛[<rows>k CSI VPB vertical position backward \u001b[1k
␛[0K CSI EL erase: from cursor to end of line
␛[1K CSI EL erase: from cursor to beginning of line
␛[2K CSI EL erase: entire line
␛[4l CSI RM reset mode: replace mode (IRM)
␛[20l CSI RM reset mode: normal linefeed (LNM)
␛[<n>L CSI IL insert lines \u001b[1L
␛[m CSI SGR select graphic rendition
␛[<n>M CSI DL delete lines \u001b[1M
␛[0n CSI DSR device status report: ready
␛[5n CSI DSR device status report: status report
␛[6n CSI DSR device status report: report cursor position
␛[Rn CSI DSR device status report: report cursor position response
␛[0N CSI EF erase in field: from cursor to end of field
␛[1N CSI EF erase in field: from beginning of field to cursor
␛[2N CSI EF erase in field: entire field
␛[0o CSI DAQ define area qualification: unprotected
␛[1o CSI DAQ define area qualification: guarded (protected)
␛[2o CSI DAQ define area qualification: graphic character input
␛[3o CSI DAQ define area qualification: numeric input
␛[4o CSI DAQ define area qualification: alphabetic input
␛[5o CSI DAQ define area qualification: input justified right
␛[6o CSI DAQ define area qualification: fill with zeros
␛[7o CSI DAQ define area qualification: set horizontal tab
␛[8o CSI DAQ define area qualification: protected (unguarded)
␛[9o CSI DAQ define area qualification: fill with spaces
␛[0O CSI EA erase in area: from cursor to end of area
␛[1O CSI EA erase in area: from beginning of area to cursor
␛[2O CSI EA erase in area: entire area
␛[<n>P CSI DCH delete characters \u001b[1P
␛[0q CSI DECLL load LEDs: turn off all LEDs
␛[1q CSI DECLL load LEDs: turn on LED 1
␛[2q CSI DECLL load LEDs: turn on LED 2
␛[3q CSI DECLL load LEDs: turn on LED 3
␛[4q CSI DECLL load LEDs: turn on LED 4
␛[0Q CSI SEE select editing extent: entire buffer
␛[1Q CSI SEE select editing extent: active line
␛[2Q CSI SEE select editing extent: between horizontal tabs
␛[3Q CSI SEE select editing extent: qualified area
␛[<top>;<bottom>r CSI DECSTBM set scrolling region \u001b[1,24r
␛[<row>;<col>R CSI CPR cursor position report \u001b[1,1R
␛[s CSI SCP save cursor position
␛[<rows>S CSI SU scroll up (pan down) \u001b[1S
␛[t CSI window manipulation
␛[<rows>T CSI SD scroll down (pan up) \u001b[1T
␛[u CSI RCP restore cursor position
␛[<n>U CSI NP next page \u001b[1U
␛[<n>V CSI PP preceding page \u001b[1V
␛[0W CSI CTC cursor tabulation control: set horizontal tab at active position
␛[1W CSI CTC cursor tabulation control: set vertical tab at active line
␛[2W CSI CTC cursor tabulation control: clear horizontal tab at active position
␛[3W CSI CTC cursor tabulation control: clear vertical tab at active line
␛[4W CSI CTC cursor tabulation control: clear all horizontal tabs at active line
␛[5W CSI CTC cursor tabulation control: clear all horizontal tabs
␛[6W CSI CTC cursor tabulation control: clear all vertical tabs
␛[x CSI DECREQTPARM request terminal parameters
␛[<n>X CSI ECH erase characters \u001b[1X
␛[y CSI DECTSDT test diagnostic data
␛[<n>Y CSI CVT cursor vertical tabulation \u001b[1Y
␛[<n>Z CSI CBT cursor backward tabulation \u001b[1Z
␛[?1h DEC DECCKM enable cursor key to application
␛[?1l DEC DECCKM disable cursor key to application
␛[?10h DEC enable show toolbar
␛[?10l DEC disable show toolbar
␛[?1000h DEC enable VT200 mouse reporting
␛[?1000l DEC disable VT200 mouse reporting
␛[?1001h DEC enable X11 mouse reporting
␛[?1001l DEC disable X11 mouse reporting
␛[?1002h DEC enable button-event mouse reporting
␛[?1002l DEC disable button-event mouse reporting
␛[?1003h DEC enable any-event mouse reporting
␛[?1003l DEC disable any-event mouse reporting
␛[?1004h DEC enable focus in/out events
␛[?1004l DEC disable focus in/out events
␛[?1005h DEC enable UTF-8 mouse mode
␛[?1005l DEC disable UTF-8 mouse mode
␛[?1006h DEC enable SGR mouse mode
␛[?1006l DEC disable SGR mouse mode
␛[?1007h DEC enable alternate scroll mode
␛[?1007l DEC disable alternate scroll mode
␛[?1010h DEC enable scroll to bottom on tty output
␛[?1010l DEC disable scroll to bottom on tty output
␛[?1011h DEC enable scroll to bottom on keypress
␛[?1011l DEC disable scroll to bottom on keypress
␛[?1014h DEC enable use CLIPBOARD for special paste
␛[?1014l DEC disable use CLIPBOARD for special paste
␛[?1015h DEC enable urxvt mouse mode
␛[?1015l DEC disable urxvt mouse mode
␛[?1016h DEC enable SGR mouse pixel mode
␛[?1016l DEC disable SGR mouse pixel mode
␛[?1016h DEC enable SGR mouse pixel mode
␛[?1016l DEC disable SGR mouse pixel mode
␛[?1021h DEC enable bold key sends DEL
␛[?1021l DEC disable bold key sends DEL
␛[?1022h DEC enable Sun function key mode
␛[?1022l DEC disable Sun function key mode
␛[?1023h DEC enable meta sends ESC
␛[?1023l DEC disable meta sends ESC
␛[?1034h DEC enable 8-bit meta key
␛[?1034l DEC disable 8-bit meta key
␛[?1035h DEC enable numeric keypad meta key
␛[?1035l DEC disable numeric keypad meta key
␛[?1036h DEC enable alternate key modifiers
␛[?1036l DEC disable alternate key modifiers
␛[?1037h DEC enable delete key to send DEL
␛[?1037l DEC disable delete key to send DEL
␛[?1038h DEC enable Alt key mode
␛[?1038l DEC disable Alt key mode
␛[?1039h DEC enable alternate backspace
␛[?1039l DEC disable alternate backspace
␛[?1039h DEC enable Alt sends ESC prefix
␛[?1039l DEC disable Alt sends ESC prefix
␛[?1040h DEC enable keep selection even if not highlighted
␛[?1040l DEC disable keep selection even if not highlighted
␛[?1041h DEC enable use CLIPBOARD selection
␛[?1041l DEC disable use CLIPBOARD selection
␛[?1042h DEC enable bell to urgent
␛[?1042l DEC disable bell to urgent
␛[?1043h DEC enable enable raising window on BEL
␛[?1043l DEC disable enable raising window on BEL
␛[?1044h DEC enable reuse most recent data to CLIPBOARD
␛[?1044l DEC disable reuse most recent data to CLIPBOARD
␛[?1045h DEC enable extended reverse-wraparound mode
␛[?1045l DEC disable extended reverse-wraparound mode
␛[?1046h DEC enable application cursor keys mode
␛[?1046l DEC disable application cursor keys mode
␛[?1047h DEC enable alternate screen mode
␛[?1047l DEC disable alternate screen mode
␛[?1048h DEC enable extended cursor mode
␛[?1048l DEC disable extended cursor mode
␛[?1049h DEC enable alternate screen buffer (with cursor save/restore)
␛[?1049l DEC disable alternate screen buffer (with cursor save/restore)
␛[?1050h DEC enable termcap/terminfo special keys
␛[?1050l DEC disable termcap/terminfo special keys
␛[?1051h DEC enable Sun function keys
␛[?1051l DEC disable Sun function keys
␛[?1052h DEC enable HP function keys
␛[?1052l DEC disable HP function keys
␛[?1053h DEC enable SCO function keys
␛[?1053l DEC disable SCO function keys
␛[?1055h DEC enable VT200 highlighting
␛[?1055l DEC disable VT200 highlighting
␛[?1056h DEC enable VT220 highlighting
␛[?1056l DEC disable VT220 highlighting
␛[?1057h DEC enable VT320 highlighting
␛[?1057l DEC disable VT320 highlighting
␛[?1060h DEC enable legacy xterm keys
␛[?1060l DEC disable legacy xterm keys
␛[?1061h DEC enable VT220 keyboard
␛[?1061l DEC disable VT220 keyboard
␛[?1062h DEC enable VT220 function keys
␛[?1062l DEC disable VT220 function keys
␛[?1070h DEC enable six-key function keys
␛[?1070l DEC disable six-key function keys
␛[?12h DEC enable blinking cursor
␛[?12l DEC disable blinking cursor
␛[?18h DEC DECPFF enable print feed form
␛[?18l DEC DECPFF disable print feed form
␛[?19h DEC DECPEX enable print extent
␛[?19l DEC DECPEX disable print extent
␛[?2h DEC DECANM enable ANSI mode
␛[?2l DEC DECANM disable ANSI mode
␛[?2004h DEC enable bracketed paste mode
␛[?2004l DEC disable bracketed paste mode
␛[?2026h DEC enable synchronized output mode
␛[?2026l DEC disable synchronized output mode
␛[?25h DEC DECTCEM enable show cursor
␛[?25l DEC DECTCEM disable show cursor
␛[?3h DEC DECCOLM enable number of columns to 132
␛[?3l DEC DECCOLM disable number of columns to 132
␛[?30h DEC enable show scrollbar
␛[?30l DEC disable show scrollbar
␛[?35h DEC enable enable font-shifting
␛[?35l DEC disable enable font-shifting
␛[?38h DEC DECTEK enable enter Tektronix mode
␛[?38l DEC DECTEK disable enter Tektronix mode
␛[?4h DEC DECSCLM enable smooth scrolling
␛[?4l DEC DECSCLM disable smooth scrolling
␛[?40h DEC enable allow 80->132 column mode
␛[?40l DEC disable allow 80->132 column mode
␛[?41h DEC enable more(1) fix
␛[?41l DEC disable more(1) fix
␛[?42h DEC DECNRCM enable national/multinational character mode
␛[?42l DEC DECNRCM disable national/multinational character mode
␛[?44h DEC enable margin bell
␛[?44l DEC disable margin bell
␛[?45h DEC enable reverse-wraparound mode
␛[?45l DEC disable reverse-wraparound mode
␛[?46h DEC enable start logging
␛[?46l DEC disable start logging
␛[?47h DEC enable alternate screen buffer
␛[?47l DEC disable alternate screen buffer
␛[?5h DEC DECSCNM enable screen mode to reverse video
␛[?5l DEC DECSCNM disable screen mode to reverse video
␛[?6h DEC DECOM enable origin mode to relative
␛[?6l DEC DECOM disable origin mode to relative
␛[?66h DEC DECNKM enable application keypad mode
␛[?66l DEC DECNKM disable application keypad mode
␛[?67h DEC enable backarrow sends backspace
␛[?67l DEC disable backarrow sends backspace
␛[?69h DEC DECVSSM enable vertical split screen mode
␛[?69l DEC DECVSSM disable vertical split screen mode
␛[?7h DEC DECAWM enable auto-wrap mode
␛[?7l DEC DECAWM disable auto-wrap mode
␛[?8h DEC DECARM enable auto-repeat keys
␛[?8l DEC DECARM disable auto-repeat keys
␛[?9h DEC DECINLM enable interlace mode
␛[?9l DEC DECINLM disable interlace mode
␛[?95h DEC enable do not clear screen when DECCOLM is set
␛[?95l DEC disable do not clear screen when DECCOLM is set
␛[<;<params>;<final> PRIVATE private sequence \u001b[<;1;h
␛[=;<params>;<final> PRIVATE private sequence \u001b[=;1;c
␛[>;<params>;<final> PRIVATE private sequence \u001b[>;0;c
␛]0;<text>ST OSC OSC 0 set window title and icon name \u001b]0;title\u0007
␛]1;<text>ST OSC OSC 1 set icon name \u001b]1;icon\u0007
␛]2;<text>ST OSC OSC 2 set window title \u001b]2;title\u0007
␛]3ST OSC OSC 3 set X property on top-level window
␛]4;<n>;<color-spec>ST OSC OSC 4 set/read palette color \u001b]4;11;rgb:00/ff/00\u0007
␛]5ST OSC OSC 5 change special color spec
␛]6ST OSC OSC 6 enable special color
␛]7;<url>ST OSC OSC 7 set current working directory \u001b]7;file://hostname/path\u0007
␛]8;<params>;<url>ST OSC OSC 8 hyperlink \u001b]8;id=1;https://example.com\u0007
␛]8ST OSC OSC 8 hyperlink (end)
␛]9;<message>ST OSC OSC 9 send notification \u001b]9;hello there\u0007
␛]10;<color-spec>ST OSC OSC 10 set/read text foreground color \u001b]10;rgb:ff/00/00\u0007
␛]11;<color-spec>ST OSC OSC 11 set/read text background color \u001b]11;rgb:00/00/ff\u0007
␛]12;<color-spec>ST OSC OSC 12 set/read text cursor color \u001b]12;rgb:00/ff/00\u0007
␛]13ST OSC OSC 13 change mouse foreground color
␛]14ST OSC OSC 14 change mouse background color
␛]15ST OSC OSC 15 change Tektronix foreground color
␛]16ST OSC OSC 16 change Tektronix background color
␛]17ST OSC OSC 17 change highlight color
␛]18ST OSC OSC 18 change Tektronix cursor color
␛]19ST OSC OSC 19 change highlight foreground color
␛]46ST OSC OSC 46 set log file
␛]50ST OSC OSC 50 set font
␛]51ST OSC OSC 51 reserved for emacs shell
␛]52;<c>;<data>ST OSC OSC 52 manipulate clipboard \u001b]52;c;YmFzZTY0\u0007
␛]104;<n>ST OSC OSC 104 reset palette color \u001b]104;11\u0007
␛]105ST OSC OSC 105 reset special color spec
␛]106ST OSC OSC 106 disable special color
␛]110ST OSC OSC 110 reset dynamic color
␛]111ST OSC OSC 111 reset dynamic color
␛]112ST OSC OSC 112 reset dynamic color
␛]113ST OSC OSC 113 reset dynamic color
␛]114ST OSC OSC 114 reset dynamic color
␛]115ST OSC OSC 115 reset dynamic color
␛]116ST OSC OSC 116 reset dynamic color
␛]117ST OSC OSC 117 reset dynamic color
␛]118ST OSC OSC 118 reset dynamic color
␛]119ST OSC OSC 119 reset dynamic color
␛]133ST OSC OSC 133 FinalTerm shell integration
␛]777;notify;<title>;<body>ST OSC OSC 777 send notification (rxvt-unicode) \u001b]777;notify;subject;hello\u0007
␛]1000;<name>=<value>ST OSC OSC 1000 xterm modification \u001b]1000;resource=setting\u0007
␛]1337ST OSC OSC 1337 iTerm2 shell integration
␛ F ESC S7C1T send 7-bit C1 controls
␛ G ESC S8C1T send 8-bit C1 controls
␛ L ESC set ANSI conformance level 1
␛ M ESC set ANSI conformance level 2
␛ N ESC set ANSI conformance level 3
␛ O ESC set ANSI conformance level 4
␛_ ESC APC APC string
␛(0 ESC SCS G0: select special graphics set
␛(1 ESC SCS G0: select alternate ROM standard character set
␛(2 ESC SCS G0: select alternate ROM special graphics set
␛(A ESC SCS G0: select UK character set
␛(B ESC SCS G0: select ASCII character set
␛)0 ESC SCS G1: select special graphics set
␛)1 ESC SCS G1: select alternate ROM standard character set
␛)2 ESC SCS G1: select alternate ROM special graphics set
␛)A ESC SCS G1: select UK character set
␛)B ESC SCS G1: select ASCII character set
␛[ ESC CSI control sequence introducer
␛] ESC OSC operating system command
␛} ESC LS2R invoke G2 character set as GR
␛*0 ESC SCS G2: select special graphics set
␛*1 ESC SCS G2: select alternate ROM standard character set
␛*2 ESC SCS G2: select alternate ROM special graphics set
␛*A ESC SCS G2: select UK character set
␛*B ESC SCS G2: select ASCII character set
␛\ ESC ST string terminator
␛#3 ESC DECDHL double-height line, top half
␛#4 ESC DECDHL double-height line, bottom half
␛#5 ESC DECSWL single-width, single-height characters
␛#6 ESC DECDWL double-width, single-height characters
␛#8 ESC DECALN screen alignment pattern
␛%@ ESC select default character set
␛%G ESC select UTF-8 character set
␛^ ESC SOS start of string
␛+0 ESC SCS G3: select special graphics set
␛+1 ESC SCS G3: select alternate ROM standard character set
␛+2 ESC SCS G3: select alternate ROM special graphics set
␛+A ESC SCS G3: select UK character set
␛+B ESC SCS G3: select ASCII character set
␛< ESC VT52 mode
␛= ESC DECPAM application keypad
␛> ESC DECPNM normal keypad
␛| ESC LS3R invoke G3 character set as GR
␛~ ESC LS1R invoke G1 character set as GR
␛6 ESC DECBI back index
␛7 ESC DECSC save cursor position
␛7 ESC DECSC save cursor position
␛8 ESC DECRC restore cursor position
␛8 ESC DECRC restore cursor position
␛9 ESC DECFI forward index
␛c ESC RIS reset to initial state
␛c ESC RIS reset to initial state
␛D ESC IND index
␛D ESC IND index
␛E ESC NEL next line
␛E ESC NEL next line
␛H ESC HTS horizontal tab set
␛H ESC HTS horizontal tab set
␛K ESC VTS vertical tab set
␛l ESC memory lock
␛M ESC RI reverse index
␛M ESC RI reverse index
␛n ESC LS2 invoke G2 character set
␛N ESC SS2 single shift 2
␛o ESC LS3 invoke G3 character set
␛O ESC SS3 single shift 3
␛P ESC DCS device control string
␛X ESC PM privacy message
␛Z ESC DECID identify device
␛Z ESC DECID identify device
␛P;<charset-data>{ST DCS DECDLD downloadable character set definition \u001bP;0;1;2;3;4;5;6;7{\u001b\\
␛P;<termcap-data>+pST DCS set termcap/terminfo data \u001bP;xterm:co#80:li#24+p\u001b\\
␛P;<capability>+qST DCS request termcap/terminfo string \u001bP;Co+q\u001b\\
␛P;<key-definitions>|ST DCS DECUDK user-defined keys \u001bP;5/4,7/~~|\u001b\\
␛P;<parameter>$pST DCS DECRQSS request \u001bP;"q$p\u001b\\
␛P;<setting>$qST DCS DECRQSS request selection or setting \u001bP;m$q\u001b\\
␛P;<state-data>$tST DCS restore presentation state \u001bP;presentation$t\u001b\\
␛P;<format-data>$uST DCS restore format state \u001bP;format$u\u001b\\
␛_;<command>ST STRING APC application program command \u001b_;custom application data\u001b\\
␛^;<message>ST STRING PM privacy message \u001b^;private data content\u001b\\
␛X;<data>ST STRING SOS start of string \u001bX;string sequence data\u001b\\

Something missing or incorrect? Feel free to report or fix.