wiki.tau.garden

DEC Modes

This page tries to list all (DEC) (private) modes that are encountered in the wild.
These modes can be set using DECSET and unset using DECRST.

Modes

ModeOriginDescription
1DECDECCKM - Cursor Keys Mode
2DECDECANM - ANSI/VT52 Mode
3DECDECCOLM - Column
4DECDECSCLM - Scrolling
5DECDECSCNM - Screen Mode (light or dark screen)
6DECDECOM - Origin Mode
7DECDECAWM - Auto Wrap Mode
8DECDECARM - Auto Repeat Mode
9DECDECINLM - Interlace Mode
9xtermMouse Tracking
10DECDECEDM - Editing Mode
10rxvtShow toolbar
11DECDECLTM - Line Transmit Mode
12DECDECKANAM - Katakana Shift Mode
12xtermBlinking cursor
13DECDECSCFDM - Space Compression/Field Delimiter Mode
13xtermStart blinking cursor
14DECDECTEM - Transmit Execution Mode
14xtermEnable XOR of blinking cursor control sequence and menu.
16DECDECEKEM - Edit Key Execution Mode
18DECDECPFF - Print Form Feed
19DECDECPEX - Printer Extent
20DECOV1 - Overstrike
21DECBA1 - Local BASIC
22DECBA2 - Host BASIC
23DECPK1 - Programmable Keypad
24DECAH1 - Auto Hardcopy
25DECDECTCEM - Text Cursor Enable Mode
27DECDECPSP - Proportional Spacing
29DECDECPSM - Pitch Select Mode
30rxvtShow scrollbar
34DECDECRLM - Cursor Right to Left Mode
35DECDECHEBM - Hebrew (Keyboard) Mode
35rxvtEnable font-shifting functions
36DECDECHEM - Hebrew Encoding Mode
38DECDECTEK - Tektronix 4010/4014 Mode
40DECDECCRNLM - Carriage Return/New Line Mode
40xtermAllow 80 โ‡’ 132 mode
41DECDECUPM - Unidirectional Print Mode
41xtermmore(1) fix
42DECDECNRCM - National Replacement Character Set Mode
43DECDECGEPM - Graphics Expanded Print Mode
44DECDECGPCM - Graphics Print Color Mode
44xtermTurn on margin bell
45DECDECGPCS - Graphics Print Color Syntax
45xtermReverse-wraparound mode
46DECDECGPBM - Graphics Print Background Mode
46xtermStart logging
47DECDECGRPM - Graphics Rotated Print Mode
47xtermUse Alternate Screen Buffer
49DECDECTHAIM - Thai Input Mode
50DECDECTHAICM - Thai Cursor Mode
51DECDECBWRM - Black/White Reversal Mode
52DECDECOPM - Origin Placement Mode
53DECDEC131TM - VT131 Transmit Mode
55DECDECBPM - Bold Page Mode
57DECDECNAKB - Greek/N-A Keyboard Mapping Mode
58DECDECIPEM - Enter IBM Proprinter Emulation Mode
59DECDECKKDM - Kanji/Katakana Display Mode
60DECDECHCCM - Horizontal Cursor Coupling
61DECDECVCCM - Vertical Cursor Coupling Mode
64DECDECPCCM - Page Cursor Coupling Mode
65DECDECBCMM - Business Color Matching Mode
66DECDECNKM - Numeric Keypad Mode
67DECDECBKM - Backarrow Key Mode
68DECDECKBUM - Keyboard Usage Mode
69DECDECVSSM - Vertical Split Screen Mode
69DECDECLRMM - Left Right Margin Mode
70DECDECFPM - Force Plot Mode
73DECDECXRLM - Transmission Rate Limiting
80DECDECSDM - Sixel Display Mode
81DECDECKPM - Key Position Mode
83WY-37052 line
84WY-370Erasable/nonerasable WYENAT Off attribute select
85WY-370Replacement character color
90DECDECTHAISCM - Thai Space Compensating Mode
95DECDECNCSM - No Clearing Screen on Column Change Mode
96DECDECRLCM - Right to Left Copy Mode
97DECDECCRTSM - CRT Save Mode
98DECDECARSM - Auto Resize Mode
99DECDECMCM - Modem Control Mode
100DECDECAAM - Auto Answerback Mode
101DECDECCANSM - Conceal Answerback Message Mode
102DECDECNULM - Ignore Null Mode
103DECDECHDPXM - Half Duplex Mode
104DECDECESKM - Secondary Keyboard Language Mode
106DECDECOSCNM - Overscan Mode
108DECDECNUMLK - NumLock Mode
109DECDECCAPSLK - Caps Lock Mode
110DECDECKLHIM - Keyboard LEDs Host Indicator Mode
111DECDECFWM - Framed Windows Mode
112DECDECRPL - Review Previous Lines Mode
113DECDECHWUM - Host Wake-Up Mode
114DECDECATCUM - Alternate Text Color Underline Mode
115DECDECATCBM - Alternate Text Color Blink Mode
116DECDECBBSM - Bold and Blink Style Mode
117DECDECECM - Erase Color Mode
.........
1000xtermSend Mouse X & Y on button press
1001xtermUse Hilite Mouse Tracking
1002xtermUse Cell Motion Mouse Tracking
1003xtermUse All Motion Mouse Tracking
1004xtermSend FocusIn/FocusOut events
1005xtermEnable UTF-8 Mouse Mode
1006xtermEnable SGR Mouse Mode
1007xtermEnable Alternate Scroll Mode
1010rxvtScroll to bottom on tty output
1011rxvtScroll to bottom on key press
1014xtermEnable fastScroll resource
1015urxvtEnable urxvt Mouse Mode
1016xtermEnable SGR Mouse PixelMode
1021rxvtBold/italic implies high intensity
1034xtermInterpret "meta" key
1035xtermEnable special modifiers for Alt and NumLock keys
1036xtermSend ESC when Meta modifies a key
1037xtermSend DEL from the editing-keypad Delete key
1039xtermSend ESC when Alt modifies a key
1040xtermKeep selection even if not highlighted
1041xtermUse the CLIPBOARD selection
1042xtermEnable Urgency window manager hint when Control-G is received
1043xtermEnable raising of the window when Control-G is received
1044xtermReuse the most recent data copied to CLIPBOARD
1045xtermExtended Reverse-wraparound mode (XTREVWRAP2)
1046xtermEnable switching to/from Alternate Screen Buffer
1047xtermUse Alternate Screen Buffer
1048xtermSave cursor as in DECSC
1049xtermSave cursor as in DECSC and use alternate screen buffer
1050xtermSet terminfo/termcap function-key mode
1051xtermSet Sun function-key mode
1052xtermSet HP function-key mode
1053xtermSet SCO function-key mode
1060xtermSet legacy keyboard emulation, i.e, X11R6
1061xtermSet VT220 keyboard emulation
1070xtermUse private color registers for each graphic
.........
1243VTEArrow keys swapping (BiDi)
.........
1337iTerm2Report Key Up
.........
2001xtermEnable readline mouse button-1
2002xtermEnable readline mouse button-2
2003xtermEnable readline mouse button-3
2004xtermSet bracketed paste mode
2005xtermEnable readline character-quoting
2006xtermEnable readline newline pasting
2026ContourSynchronized Output
2027minttyRewrap on resize (deprecated)
2027ContourGrapheme cluster processing
2028ContourText reflow
2029ContourPassive Mouse Tracking
2030ContourReport grid cell selection
2031ContourColor palette updates
2048@rockoragerIn-Band Window Resize Notifications
2500VTEMirror box drawing characters
2501VTEBiDi autodetection
.........
7700minttyAmbiguous width reporting
7711minttyScroll markers (prompt start)
7723minttyRewrap on resize
7727minttyApplication escape key mode
7728minttySend send ^\ instead of the standard ^[ for the ESC key
7730minttyGraphics position
7765minttyAlt-modified mousewheel mode
7766minttyShow/hide scrollbar
7767minttyFont change reporting
7780minttyGraphics position
7783minttyShortcut key mode
7786minttyMousewheel reporting
7787minttyApplication mousewheel mode
7796minttyBiDi on current line
.........
8200Tera TermTTCTH
.........
8400RLogin
8401RLogin
8402RLogin
8403RLogin
8405RLogin
8406RLogin
8428RLogin
8435RLogin
8437RLogin
8440RLogin
8441RLogin
8442RLogin
8443RLogin
8448RLogin
8449RLogin
8450RLogin
8451RLogin
8452xterm/RLoginSixel scrolling leaves cursor to right of graphic
8453RLogin
8455RLogin
8456RLogin
8457RLogin
8458RLogin
8459RLogin
.........
8800DRCSTermenable/disable character mapping service
8801DRCSTermreserved
8802DRCSTermreserved
8803DRCSTermreserved
8804DRCSTermreserved
8840TanasinnTreat ambiguous width characters as double-width
.........
9001conptywin32-input-mode
19997KittyHandle Ctrl-C/Ctrl-Z mode
77096minttyBiDi
737769footInput Method Editor (IME) mode

Sources

This table draws from many different sources:

  1. Private Modes used by DEC
  2. XTerm Control Sequences
  3. Contour: Synchronized Output
  4. Terminal Unicode Core
  5. Contour: Line Reflow Reconfiguration
  6. Contour: Dark and Light Mode Detection
  7. BiDi in Terminal Emulators
  8. mintty: CtrlSeqs
  9. DRCSTerm
  10. Improved keyboard handling in Conpty
  11. RLogin: List of supported control codes
  12. Tanasinn: Modes
  13. Tera Term: Supported Control Functions
  14. foot-ctlseqs(7) man page
  15. WY-370 Programmer's Guide (PDF Page 188)
  16. Private Mode for In-Band Window Resize Notifications

I used VTE's modes.py as a starting point for more exploration.


Since this page doesn't track support across terminals, you might find the following collection of links useful. They point to man pages or source code files that show a terminal's supported private modes.

Links