Skip to content

Erase scrollback (ED 3)

Category: erase · Tags: Xterm Extensions · Specification ↗

ED 3 clears the scrollback buffer. The sequence is ESC [ 3 J. An xterm extension not part of ECMA-48. Applications may use this for security purposes (clearing sensitive output from scrollback after a password prompt) or to implement a "clear" command that truly clears all terminal history.

Supported by 6 of 6 backends (100%)

Support Matrix

BackendVersionSupportNotes
Alacritty0.26.0✓ yes
Ghostty1.3.1✓ yes
Kitty0.40.0✓ yes
vt1000.1.0✓ yes
WezTerm0.1.0-fork.5✓ yes
xterm.js5.5.0✓ yes

Powered by Termless
Playwright for Terminals