[Konsole-devel] [Bug 153264] In "konsole" under Edit -> Clear Terminal, it clears the whole thing off including "ubuntu at ubuntu:~$" while this is not supposed to happen
Robert Knight
robertknight at gmail.com
Sun Dec 2 13:49:37 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=153264
robertknight gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From robertknight gmail com 2007-12-02 14:49 -------
This behaviour is correct, if not desirable. "Edit -> Clear Terminal" is intended to clear the text of the screen and nothing else - the state of the terminal is otherwise unchanged. The closest equivalent to the "clear" command is "Edit -> Reset & Clear Terminal". 'Edit -> Reset & Clear Terminal' erases everything on screen and moves the cursor back to the top-left corner. Unlike typing 'clear' it will also remove the prompt (the "ubuntu ubuntu:~$ " text) - this is because the 'clear' command is part of the shell which knows about the prompt and can therefore avoid clearing it in the first place or clear the whole screen and then re-print the prompt. Konsole doesn't know anything about the prompt so all it can do is clear the entire screen and reset the terminal back to its original state.
In KDE 4 a slightly unpleasant trick is used where the terminal is resized slightly larger and then back to its original size during a reset (Edit -> Clear & Reset) which causes some shells (eg. bash) to reprint their prompt - so the effect is similar to typing "clear". I won't be backporting this to KDE 3 however.
More information about the konsole-devel
mailing list