Summary: | Sequence <ESC>[3J is implemented incorrectly (should erase whole screen AND clear the scrollback buffer) | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Mikko Rantalainen <mikko.rantalainen> |
Component: | emulation | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | ninjalj |
Priority: | NOR | ||
Version: | 21.12.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mikko Rantalainen
2024-02-13 15:43:08 UTC
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. |