Version: 2.1 (using Devel) Installed from: Compiled sources OS: Linux While looking at http://rtfm.etla.org/xterm/ctlseq.html (mentioned in bug #158905), I noticed the '3' variant of the clear sequence CSI # J, which is described as "Erase Saved Lines". That sounds a whole lot like "clear history", and sure enough, in xterm that's what it does. I know Konsole has the new 'send commands via escape sequences' thing, but that has the disadvantage of a: being very long to type, and b: clear history must be done by disabling history and re-enabling (which means if you had it on 'unlimited' and change it "back" to fixed... oops). How about recognizing CSI 3 J (a.k.a. '\e[3J' a.k.a. '^[[3J') ala xterm?
SVN commit 787067 by knight: Add support for xterm's CSI 3 J control sequence to clear the history. BUG: 158235 M +1 -0 Vt102Emulation.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=787067
How can one enter this escape sequence?
print '^[[3J' where the ^[ are one character - hit Ctrl+v and then ESC to generate it. It seems to work as xterm which both print a ' which is strange.
(In reply to Kurt Hindenburg from comment #3) > print '^[[3J' where the ^[ are one character - hit Ctrl+v and then ESC to > generate it. Thanks for reply. I tried this but got the following error: bash: print: command not found > It seems to work as xterm which both print a ' which is strange. This I don't understand.
(In reply to Piotr Dobrogost from comment #4) [...] > Thanks for reply. I tried this but got the following error: > bash: print: command not found > FTR, what you need to do is send that escape sequence to the terminal, e.g. using printf or echo: printf '\e[3J' echo -e '\e[3J' alternatively you can use the menu, View -> Clear Scrollback.