Bug 392661 - 'Erase whole display' CSI sequence (\033[2J) is incompatible with xterm/linux console
Summary: 'Erase whole display' CSI sequence (\033[2J) is incompatible with xterm/linux...
Status: RESOLVED DUPLICATE of bug 384218
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-03 01:08 UTC by Mariusz Glebocki
Modified: 2018-04-27 21:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Glebocki 2018-04-03 01:08:32 UTC
How it works in Konsole:
All lines are shifted up until they disappear from the screen. They are available in the history.

XTerm and Linux console:
Everything visible on the screen is erased. Scrollback remains unchanged.

VT102 User Guide says:
"Erases complete display. All lines are erased and changed to single-width. Cursor does not move."
(those requirements are met in both cases. Scrollback was not available there, so nobody specified what to do with it.)

I think XTerm/Linux behavior is more appropriate here:
* It literally erases the characters, not shifts them up.
* Konsole by default sets 'TERM' to 'xterm-256color'
* 'clear' entry from terminfo gives strange effect (saves current screen in history, but removes everything else from it).
Comment 1 Egmont Koblinger 2018-04-03 07:27:21 UTC
Duplicate of bug 384218, see also https://bugzilla.gnome.org/show_bug.cgi?id=506438.
Comment 2 Mariusz Glebocki 2018-04-27 21:04:16 UTC

*** This bug has been marked as a duplicate of bug 384218 ***