'reset' works, it's just kinda sluggish. Many years ago I had "clear" aliased to some escape sequences that would clear the scroll buffer
and the screen. This used to work on an SGI:
Code:
alias clear "echo -n '\033[14/y'"
I can't find anything for xterm that works like that. It would be wonderful if /usr/sbin/clear had an option to clear an xterm's scroll back buffer.
Ya, you can use "reset" (alias clear to reset) but I'm not as fond of how it works as how snappy and wonderful those old escape sequences worked. As the OP said, I also do the kind of thing he mentioned all the time. I.e.,
Code:
% clear; <some_verbose_command>
so that I can grab the scroll bar, and jam it up to the top and quickly find all the output from the command.
Anyone have any knowledge about some magic xterm escape sequence that WILL clear the scroll back buffer?
J.