[konsole] [Bug 384218] clear/^l shouldn't add empty lines to the scrollback buffer
RJVB
bugzilla_noreply at kde.org
Fri Sep 1 08:09:44 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=384218
--- Comment #2 from RJVB <rjvbertin at gmail.com> ---
Personally I'd guess this is just a side-effect of what Konsole can see of
whatever the clear command sends to the tty. I'd hope that both the Konsole and
gnome-term authors sat back to consider whether the other(s) implemented a
feature the way they'd like to see it before copying it! ;)
I think there are at least 2 levels at which an attempt can be made to improve
this. Currently Konsole emulates well-known terminals, but it could very well
define its own terminal type with the accompanying termcap/terminfo file that
modifies an existing entry (or builds on one, if that database supports
inheritance).
The other possibility might be to support E3 (might also require shipping a
dedicated terminfo file!), catch whatever specific `clear` sends to the tty as
a result, and the provide a profile option whether or not the scrollback buffer
should be cleared. The simple presence of that E3 command indicates that a
clear was requested.
FWIW, clear sends this to an xterm: `ESC[HESC[2J`
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list