[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [konsole] [Bug 384218] clear/^l shouldn't add empty lines to the scrollback buffer
From:       RJVB <bugzilla_noreply () kde ! org>
Date:       2017-09-01 8:09:44
Message-ID: bug-384218-17878-mCf4YWdtkZ () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=384218

--- Comment #2 from RJVB <rjvbertin@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 watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic