Skip to content

EL erases with bg color โ€‹

Category: erase ยท Tags: ECMA-48 Standard, VT100 ยท Specification โ†—

EL (Erase in Line) should fill erased cells with the current background color, not the default background. When a background color is set via SGR (e.g., SGR 42 for green) before issuing EL, the erased area should be painted with that background color. This is how TUI applications create colored status bars, highlighted regions, and filled backgrounds โ€” they set a background color and erase the line to paint the entire line with that color.
How this is tested: Set green background with \x1b[42m, write text, move to start of line, send \x1b[K (EL 0), verify erased cells have the green background color.
Analysis2026-03-26

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

Supported by 9 of 11 backends (82%)

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
vterm0.2.0โœ“ yesnot supported
vt1000.2.1โœ— nonot supported
WezTerm0.1.0-fork.5โœ— nonot supported

Powered by Termless
Playwright for Terminals