Skip to content

Erase screen (ED 2)

Category: erase · Tags: ECMA-48 Standard, VT100 · Specification ↗

ED 2 erases the entire visible screen. The sequence is ESC [ 2 J. The cursor position is not changed. Does not affect the scrollback buffer — use ED 3 to clear scrollback.

Supported by 5 of 6 backends (83%)

Support Matrix

BackendVersionSupportNotes
Ghostty1.3.1✓ yes
Kitty0.40.0✓ yes
vt1000.1.0✓ yes
WezTerm0.1.0-fork.5✓ yes
xterm.js5.5.0✓ yes
Alacritty0.26.0✗ noAlacritty's ED 2 doesn't clear scrollback content from buffer

Powered by Termless
Playwright for Terminals