When I connect to my server via PuTTY, I can clear the visible screen with the clear
command.
However, I can still scroll backwards in PuTTY's GUI to see the old stuff. I am aware of PuTTY's Clear Scrollback feature, but that requires mouse clicking.
I'd like to perform that exact same "Clear Scrollback" operation, but from the commandline.
Is it possible?
I read this site, which seems to indicate so.
However, my experiments have failed. For instance:
printf '\033[3J'
Does nothing, for me.
I may not be understanding the meaning of CSI 3 J
in that second link, though...
clear && printf '\033[3J'
. If you make an answer, I'll accept it.