3 ms·
Hah :) You could try echo -ne '\ec' or echo -ne '\033c'. Or this from bash/readline: clear-display (M-C-l) Clear the screen and, if possible,
by sidneythekidney 3y ago
Hah :)
You could try echo -ne '\ec' or echo -ne '\033c'. Or this from bash/readline:
clear-display (M-C-l)
Clear the screen and, if possible, the terminal's scrollback buffer, then redraw the current line, leaving the current line at the top of the screen.
But yea, this might depend on terminal as well
- dataflow 3y agoI'm aware, I already have reset() { clear && printf '\33c'; }