Control Functions Sorted by Sequence

Control Function

Mnemonic

Description

Csi!p DECSTR Reset terminal (soft reset)
Csi&u DECRQUPSS Request UPSS
Csi>Øc DA Request secondary device attributes 
Csi>24;11;Øc DA Response to secondary device attributes
Csi>c DA Request secondary device attributes 
Csi?<n>$p DECRQM Request DEC private mode settings
Csi?<n>;…<n>l RM Reset DEC private mode
Csi?<n>;…<n>h SM Set DEC private mode
Csi?<n1>;<n2>$y DECRPM Report DEC private mode setting
Csi?Øi MC Send graphics to printer
Csi?ØJ DECSED Erase unprotected characters from cursor to end of screen
Csi?ØK DECSEL Erase unprotected characters from cursor to end of line
Csi?1Øn DSR Report printer ready
Csi?13n DSR Report no printer
Csi?15n DSR Request printer status
Csi?18h DECPFF Send form feed after printing
Csi?18l DECPFF No form feed after printing
Csi?19h DECPEX Print full screen
Csi?19l DECPEX Print scrolling region
Csi?1h DECCKM Cursor keys application
Csi?1i MC Print line
Csi?1J DECSED Erase unprotected characters from top of screen to cursor 
Csi?27;<n>n DSR Report keyboard dialect (<n> = 1 for North American keyboards)
Csi?2J DECSED Erase unprotected characters from screen
Csi?2K DECSEL Erase unprotected characters from line
Csi?2l  DECANM VT52 emulation
Csi?3h DECCOLM Columns 132
Csi?3l DECCOLM Columns 80
Csi?42h DECNRCM Use national replacement set: 7-bit
Csi?42l DECNRCM Use national replacement set: 7-bit and 8-bit
Csi?43h DECGEPM Expanded print mode
Csi?43l DECGEPM Compressed print mode
Csi?44h DECGPCM Print color mode   
Csi?44l DECGPCM Print monochrome mode
Csi?45h DECGPCS Print color syntax set to RGB 
Csi?45l DECGPCS Print color syntax set to HLS
Csi?46h DECGPBM Print background 
Csi?46l DECGPBM Do not print background
Csi?47h DECGRPM Print rotated mode 
Csi?47l DECGRPM Print compressed mode 
Csi?4h DECSCLM Smooth scroll
Csi?4l DECSCLM Jump scroll
Csi?4i MC Auto print off
Csi?5Øn DSR Report a locator device detected
Csi?53n DSR Report no locator device detected
Csi?55n DSR Request status of locator device
Csi?56n DSR Request type of locator device
Csi?57;Øn DSR Report no locator device connected
Csi?57;1n DSR Report locator device is a mouse
Csi?1K DECSEL Erase unprotected characters from beginning of line to cursor 
Csi?1l DECCKM Cursor keys normal
Csi?2Øn DSR Report UDKs unlocked
Csi?21n DSR Report UDKs locked
Csi?2i MC Send graphics to host 
Csi?25h DECTCEM Cursor visible
Csi?25l DECTCEM Cursor invisible
Csi?25n DSR Request UDK status (VT200)
Csi?26n DSR Request keyboard dialect
Csi?5h DECSCNM Inverse video
Csi?5l DECSCNM Normal video
Csi?5i MC Auto print on
Csi?60h DECHCCM Horizontal cursor: couple
Csi?60l DECHCCM Horizontal cursor: decouple
Csi?61h DECVCCM Vertical cursor: couple
Csi?61l DECVCCM Vertical cursor: decouple
Csi?62n DECMSR Request macro report
Csi?63;<n>n DECCKSR Request memory checksum of macros
Csi?64h DECPCCM Page cursor: couple
Csi?64l DECPCCM Page cursor: decouple
Csi?66h DECNKM Numeric keypad mode application 
Csi?66l DECNKM Numeric keypad mode numeric 
Csi?67h DECBKM Backarrow key set to BS
Csi?67l DECBKM Backarrow key set to DT
Csi?6h DECOM  Origin mode set
Csi?6l DECOM  Origin mode reset
Csi?7h DECAWM Autowrap on
Csi?7l DECAWM Autowrap off
Csi?8Øh DECSDM Disable sixel scrolling
Csi?8Øl DECSDM Enable sixel scrolling
Csi?8h DECARM Keyboard auto repeat on
Csi?8l DECARM Keyboard auto repeat off
Csi?i MC Send graphics to printer
Csi<n>*x DECSACE  Select attribute change extent
Csi<n>*z DECIMAC  Invoke macro
Csi<n>*} none  Macro space report
Csi<n>$p DECRQM  Request ANSI mode settings
Csi<n1>;<n2>$y DECRPM Report ANSI mode settings
Csi<n>@ ICH Insert <n> characters
Csi<n>A  CUU Cursor up
Csi<n>B CUD Cursor down
Csi<n>C CUF Cursor forward
Csi<n>D CUB Cursor backward
Csi<n>S SU Pan down
Csi<n>T SD Pan up
Csi<n>U NP Next page
Csi<n>V PP Previous page
Csi<n>Z CBT Cursor backtab
Csi?<n1>;<n2>;<n3>;<n4>;<n5>...<nn>$t DECRARA Reverse attributes in rectangular area
Csi<n1>;<n2>;<n3>;<n4>${ DECSERA Selective erase of rectangular area
Csi<n1>;<n2>;<n3>;<n4>;<n5>;...<nn>$r DECCARA Change attributes of rectangular area
Csi<n1>;<n2>;<n3>;<n4>;<n5>;<n6>*y DECRQCRA Request memory checksum
Csi<n1>;<n2>;<n3>;<n4>;<n5>;<n6>;<n7>;<n8>$v DECCRA Copy rectangular area
Csi<n1>;<n2>;<n3>;<n4>$z DECERA Erase rectangular area
Csi<n1>;<n2>;<n3>;<n4>$x DECFRA Fill rectangular area
Csi<r>;<c>f HVP Move cursor to horizontal and vertical position
Csi<n>;…<n>h SM Set ANSI mode
Csi<r>;<c>H CUP Cursor position 
Csi<n>;…<n>l RM Reset ANSI mode
Csi<n>L IL  Insert <n> lines
Csi<n>;...<n>m SGR  Select graphic rendition
Csi<n>M DL  Delete <n> lines from cursor
Csi<n>P DCH  Delete <n> characters from cursor
Csi<n><SP>P PPA  Page position absolute
Csi<n><SP>Q PPR  Page position relative
Csi<n><SP>R PPB  Page position backward
Csi<t>;<b>r DECSTBM Set top and bottom scrolling region margins 
Csi<row>;<column>R CPR Report cursor position
Csi<n>X ECH Erase <n> characters on line
CsiØ"q DECSCA Select erasable character
CsiØ$} DECSASD Top 24 lines = active display
CsiØ$~ DECSSDT Do not display status line
CsiØc DA Request primary device attributes
CsiØg TBC Tab clear
CsiØi MC Print screen
CsiØJ ED Erase from cursor to end of screen
CsiØK EL Erase from cursor to end of line
CsiØn DSR Report no device malfunction
CsiØx DA Request terminal parameters
CsiØz DECVERP Print 6 lines per inch, 63 lines per page
Csi1z DECVERP Print 6 lines per inch, 63 lines per page
Csi2z DECVERP Print 8 lines per inch, 84 lines per page
Csi3z DECVERP Print 12 lines per inch, 125 lines per page
Csi4z DECVERP Print 2 lines per inch, 21 lines per page
Csi5z DECVERP Print 3 lines per inch, 32 lines per page
Csi6z DECVERP Print 4 lines per inch, 42 lines per page
Csi1"q DECSCA Select protected character
Csi1$} DECSASD Status line set to active display
Csi1$~ DECSSDT Status line set to indicator
Csi1$u DECRQTSR Request terminal state report
Csi1$w DECRQPSR Request cursor information report
Csi12h SRM Local echo off
Csi12l SRM Local echo on
Csi1J ED Erase from top of screen to cursor
Csi1K EL Erase from beginning of line to cursor
Csi1x DA Request terminal parameters
Csi0w DECSHORP Print 10 characters per inch, 80 characters per row
Csi1w DECSHORP Print 10 characters per inch, 80 characters per row
Csi2w DECSHORP Print 12 characters per inch, 96 characters per row
Csi4w DECSHORP Print 16.5 characters per inch, 132 characters per row
Csi2"q DECSCA Select erasable character
Csi2$~ DECSSDT Status line: host writable
Csi2$u DECRQTSR Request color table report (VT340)
Csi2$w DECRQPSR Request tab stop report
Csi2;<n1>;<n2>;<receive baud>;<transmit baud>;1;Øx DA  Response to CsiØx
Csi2Øh LNM Auto linefeed on
Csi2Øl LNM Auto linefeed off
Csi2h KAM Keyboard lock
Csi2J ED Erase entire screen
Csi2K EL Erase entire line
Csi2l KAM Keyboard unlock
Csi3;<n1>;<n2>;<receive baud>;<transmit baud>;1;Øx DA  Response to Csi1x
Csi3g TBC Clear all tabs
Csi3h Display controls on
Csi3l Display controls off
Csi4h IRM  Insert mode
Csi4i MC Printer controller mode off
Csi5i MC Printer controller mode on
Csi4l IRM  Replace mode
Csi5n DSR Report device malfunction
Csi5n DSR Request operating status
Csi24t DECSLPP Select lines per page: 24 lines set to 6 pages
Csi25t DECSLPP Select lines per page: 25 lines set to 5 pages
Csi36t DECSLPP Select lines per page: 36 lines set to 4 pages
Csi48t DECSLPP Select lines per page: 48 lines set to 3 pages
Csi72t DECSLPP Select lines per page: 72 lines set to 2 pages
Csi144t DECSLPP Select lines per page: 144 lines set to 1 page
Csi61"p DECSCL VT102 emulation
Csi62"p DECSCL VT200 emulation: 8-bit controls
Csi62;Ø"p DECSCL VT200 emulation: 8-bit controls
Csi62;1"p DECSCL VT200 emulation: 7-bit controls
Csi62;2"p DECSCL VT200 emulation: 8-bit controls
Csi63"p DECSCL VT300 emulation: 8-bit controls
Csi63;Ø"p DECSCL VT300 emulation: 8-bit controls
Csi63;1"p DECSCL VT300 emulation: 7-bit controls
Csi63;2"p DECSCL VT300 emulation: 8-bit controls
Csi64;1"p DECSCL VT400 emulation: 7-bit controls
Csi64"p DECSCL VT400 emulation: 8-bit controls
Csi64;0"p DECSCL VT400 emulation: 8-bit controls
Csi64;2"p DECSCL VT400 emulation: 8-bit controls
Csi6n CPR Request cursor position
Csic DA Request primary device attributes
Csig TBC Tab clear
Csii MC Print screen
Csi4;<n>;...;<n>y DECTST Terminal test (disconnect)
Dcs$q...St DECRQSS Request control function setting
Dcs<n>;<n>;P3;qs...sSt Sixel data format
Dcs<n1>;<n2>;<n3>!zD...DSt  DECDMAC Define macro (VT420)
Dcs<C>$w<def1>;<def2>;...;<defn>St DECLBD Define locator device buttons (mouse)
Dcs<C>;<L>|<def1>;<def2>;...;<defn>St DECUDK Load user-defined keys
Dcs<n>$rD...DSt DECRPSS Report control function setting
DcsØ!u%5St DECAUPSS Assign UPSS as DEC Supplemental Graphic
DcsØp Enter ReGIS at point command exited
Dcs1!uASt DECAUPSS Assign UPSS as ISO Latin-1
Dcs1$p....St DECRSTS Restore terminal state from DECTSR
Dcs1$sD....DSt DECTSR Report terminal state
Dcs1$tD....DSt DECRSPS Restore cursor from DECCIR
Dcs1$uD....DSt DECCIR Report cursor information
DcsØp Enter ReGIS at point command exited; ReGIS commands are not displayed
Dcs1p Enter ReGIS and begin new command; ReGIS commands are not displayed
Dcs2p  – Enter ReGIS at point command exited; ReGIS commands are not displayed
Dcs3p  – Enter ReGIS and begin new command; ReGIS commands are not displayed
Dcsp Enter ReGIS at point command exited; ReGIS commands are not displayed
Dcs2$p<data>St DECRSTS Restore color table (VT340)
Dcs2$s<data>St DECCTR Report color table (VT340)
DECRSPS Restore tab from DECTABSR 101
Dcs2$uD....DSt DECTABSR Report tab stop 
DcsPfn;Pcn;Pe;PcmW;Pw;Pt;Pcmh;Pcss{ Dscs UUUUUUUU/LLLLLLLL;...St  DECDLD Downline loadable character set
Esc(<chr> SCS Selects GØ
Esc)<chr> SCS Selects G1, 94-character set
Esc-<chr> SCS Selects G1, 96-character set
Esc*<chr> SCS Selects G2 (VT200), 94-character set
Esc+<chr> SCS Selects G3 (VT200), 94-character set
Esc.<chr> SCS Selects G2 (VT200), 96-character set
Esc/<chr> SCS Selects G3 (VT200), 96-character set
Esc< ANSI mode–exit VT52 emulation mode
Esc= DECKPAM Keypad mode application 
Esc= DECKPAM Keypad mode application (VT52)
Esc> DECKPNM Keypad mode normal 
Esc> DECKPNM Keypad mode normal (VT52)
Esc\ Exit ReGIS mode
Esc] MC Print screen (VT52)
Esc^ MC Auto print mode on (VT52)
Esc_ MC Auto print mode off (VT52)
Esc| LS3R Map G3 into GR
Esc} LS2R Map G2 into GR
Esc~ LS1R Map G1 into GR
Esc#3 DECDHL Double-width and height line (top half)
Esc#4 DECDHL  Double-width and height line (bottom half)
Esc#5 DECSWL  Single-width and height line
Esc#6 DECDWL  Double-width and single height line 
Esc#8 DECALN Test pattern
Esc<Sp>F  S7C1T VT200 emulation: 7-bit controls
Esc<Sp>G  S8C1T VT200 emulation: 8-bit controls
Esc7 DECSC Save cursor state
Esc8 DECRC Restore cursor state
EscA Cursor up (VT52)
EscB Cursor down (VT52)
EscC Cursor forward (VT52)
Escc RIS Reset to initial state (hard reset)
EscD Cursor backward (VT52)
EscH Home cursor (VT52)
EscH Set tab
EscI Reverse linefeed (VT52)
EscJ Erase from cursor to end of screen (VT52)
EscK Erase to end of line (VT52)
Escn LS2 Map G2 into GL
EscN SS2 Map G2 into GL for next character
Esco LS3 Map G3 into GL
EscO SS3 Map G3 into GL for next character
EscV Print cursor line (VT52)
EscW Printer controller mode on (VT52)
EscX Printer controller mode off (VT52)
EscY<r><c> Cursor to <r> row <c> column (VT52)
EscZ Request primary device attributes (VT52); reply is Esc/Z
Ind IND Index
Nel NEL Next line
Ri RI Reverse linefeed
SI  LS0 Map GØ into GL
SO  LS1 Map G1 into GL

 

 

Related Topics
Bullet Character mode configuration options
Bullet Control functions