[konsole] [Bug 481294] Sequence <ESC>[3J is implemented incorrectly (should erase whole screen AND clear the scrollback buffer)
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sat Feb 24 23:02:40 GMT 2024
https://bugs.kde.org/show_bug.cgi?id=481294
ninjalj at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOT A BUG
Status|REPORTED |RESOLVED
CC| |ninjalj at gmail.com
--- Comment #1 from ninjalj at gmail.com ---
CSI 3 J comes from xterm, where it only clears the scrollback buffer. VTE
(gnome-terminal, xfce-terminal, ...) behaves likewise. Putty also follows that
behavior.
See
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
:
CSI Ps J Erase in Display (ED), VT100.
Ps = 0 ⇒ Erase Below (default).
Ps = 1 ⇒ Erase Above.
Ps = 2 ⇒ Erase All.
Ps = 3 ⇒ Erase Saved Lines, xterm.
So, CSI 2 J erases all the screen, but not the scrollback buffer, while CSI 3 J
erases the scrollback buffer, but not the screen.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list