rxvt - how to clear scrollback

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


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


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.