8

I was hoping this would be an easy one but I don't see it in the man page and couldn't find it googling. Is there a keyboard shortcut or even a console command I can use to clear the scrolback buffer in rxvt/urxvt? Ctrl-l clears the current screen but the buffer remains.

I appreciate it.

-- Henry

henry
  • 183
  • 1
  • 5

2 Answers2

17

If you want to clear the scroll-back by pressing Ctrl-L, add this to your ~/.Xresources

URxvt.keysym.Control-l: command:\033c

This is like running:

echo -ne '\033c'

However it outputs the text to the terminal, without having to execute a command on the prompt.

Prefer this since it can be used while a program runs.

ideasman42
  • 711
  • 7
  • 18
2

In rxvt (running bash shell) the reset command work correctly.

slackmart
  • 426
  • 2
  • 11