I'm a heavy bash user and konsole is my preferred environment. I know I can use the keyboard command ctrl+shift+x to clear the scrollback buffer, but there's certain points in my scripts where I would like that to occur. How can I clear konsole's scrollback buffer using the command line, bash, or any other shell?
1 Answer
-
-
4
-
1@PatricB.: true, though in this context, I'm expecting him to incorporate it into a script Mar 22, 2012 at 16:26
-
1@SandeepDatta: It works with konsole 4.14.3 on Fedora 20; it doesn't clear the screen--it clears the scrollback buffer. Apr 10, 2015 at 18:36
-
1As an extension to this answer, I aliased this to the clear command (
alias clear="clear && echo -e '\e[3J' && clear"
) so my screen actually clears now.– BrockLeeSep 25, 2015 at 15:21