11

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?

Joshua K
  • 855

1 Answers1

17

This will do it:

echo -e "\e[3J"

Found here. Works in regular xterm too.

retracile
  • 3,636