up vote 0 down vote favorite
share [g+] share [fb]

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?

link|improve this question

80% accept rate
feedback

1 Answer

up vote 2 down vote accepted

This will do it:

echo -e "\e[3J"

Found here. Works in regular xterm too.

link|improve this answer
nice! good find and works perfectly! – Good Time Tribe Oct 24 '09 at 4:32
didn't work for me on SUSE in a xterm with bash shell. – djangofan Mar 19 '11 at 20:00
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.