Skip to content

Selective Erase (DECSED) โ€‹

Category: erase ยท Tags: VT220 ยท Specification โ†—

DECSED (CSI ? Ps J) erases only unprotected characters, leaving characters with the protected attribute (DECSCA, SGR 1 m) intact. Used for form-based applications where static labels should survive screen clears.
How this is tested: Write "ABCDE", move cursor home, send DECSED (CSI ? 2 J), verify getCell(0,0) is empty. Confirms selective erase display is recognized.
Analysis2026-03-26

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

Supported by 10 of 13 backends (77%)

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
tmux3.6aโœ“ yes
Kitty0.46.2โœ“ yes
Terminal.app2.15โœ“ yes
GNU Screen5.0.1โœ“ yes

Headless Backends โ€‹

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

BackendVersionSupportNotes
vterm0.2.0โœ“ yesDECSED (selective erase) not implemented
Alacritty0.26.0โœ— noDECSED (selective erase) not supported in alacritty
vt1000.2.1โœ— noDECSED not implemented โ€” pure TypeScript emulator
WezTerm0.1.0-fork.5โœ— noDECSED (selective erase) not supported in wezterm-term

Powered by Termless
Playwright for Terminals