[konsole] [Bug 368005] konsole clears all the screen when I execute clear command even if the scrollbar is infinite.

Egmont Koblinger via KDE Bugzilla bugzilla_noreply at kde.org
Mon Sep 19 09:36:45 UTC 2016


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

Egmont Koblinger <egmont at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egmont at gmail.com

--- Comment #1 from Egmont Koblinger <egmont at gmail.com> ---
The escape sequence '\e[3J' is intended to (and indeed does) clear the entire
scrollback. The "clear" command issues this sequence (among others).

So I see two questions:

- Why does such an escape sequence exist at all? Is it good to have it, is it
good that konsole supports this? Wouldn't it be better if no escape sequence
was allowed to wipe out the scrollback? Should konsole (and perhaps other
terminal emulators) deliberately refuse to implement this?

- Why does the "clear" command emit this sequence?

As for the first, this is an interesting design question. As for the second,
you're free to change your terminfo database, or come up with an alternate
implementation of "clear" (maybe as simple as a shell alias) that does not wipe
out the scrollback.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list