Hacker News new | past | comments | ask | show | jobs | submit login

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



I'm aware, I already have

  reset() { clear && printf '\33c'; }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: