Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

80- and 132-column mode

Applications can enable DECCOLM with DEC private mode 40. With ConPTY, the active tab fits the window to 80 or 132 columns while keeping the current row count. A hard reset forwarded by ConPTY returns from 132-column mode to 80. The Windows 10 inbox provider can consume the reset and omit screen alignment output. The bundled provider forwards both. The window fits as many whole cells as the monitor work area allows. Maximised, snapped and interactively resized windows keep their bounds. The terminal retains the requested width and the viewport can clip it.

A background tab updates its terminal grid without resizing the shared window. Switching tabs preserves the window size. A manual window resize fits all tab grids to the new dimensions.

On Windows 7, DECCOLM written as VT through the hook (for example type of a file with ESC[?40h ESC[?3h) widens the window the same way. The console agent resizes its hidden console to match before it applies later output, as a window resize does, so mode con and programs that read the console size see 132 columns. RIS from 132 columns and ESC[?3l return it to 80. Programs that draw through the console API, including Cygwin on Windows 7, which emulates escape sequences itself and drops DECCOLM as plain conhost does, stay at 80 columns. With v7-win7-vt = false the sequence is shown as text.