Skip to content

DECSTBM reset to full screen โ€‹

Category: scrollback ยท Tags: DEC Private Modes, VT100 ยท Specification โ†—

DECSTBM with no parameters (ESC [ r) resets the scroll region to the full screen. After reset, scrolling operations should affect all rows. Applications use this to restore normal scrolling behavior after using scroll regions. Failing to properly reset can leave the terminal in a state where only part of the screen scrolls, causing rendering corruption for subsequent applications.
How this is tested: Set DECSTBM 5;10, then send \x1b[r (no params), write 30 lines, verify full-screen scrolling works (total lines > screen height).
Analysis2026-03-26

Supported by all 5 tested terminals โ€” universal adoption. Part of the Core TUI baseline.

Supported by 11 of 11 backends (100%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
iTerm23.6.9โœ“ yes
Ghostty1.3.1โœ“ yes
VS Code1.112.0โœ“ yes
Warp0.2026.03.18.08.24.03โœ“ yes
Cursor2.6.21โœ“ yes
Kitty0.46.2โœ“ yes
Terminal.app2.15โœ“ yes

Headless Backends โ€‹

Parser correctness only โ€” a โœ“ means the parser accepts the sequence.

BackendVersionSupportNotes
Alacritty0.26.0โœ“ yes
vt1000.2.1โœ“ yes
vterm0.2.0โœ“ yes
WezTerm0.1.0-fork.5โœ“ yes

Powered by Termless
Playwright for Terminals