Home » Questions » Computers [ Ask a new question ]

How can I clear the scrollback buffer in konsole from bash?

How can I clear the scrollback buffer in konsole from bash?

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?

Asked by: Guest | Views: 193
Total answers/comments: 1
Guest [Entry]

"This will do it:

echo -e ""\e[3J""

Found here. Works in regular xterm too."