News for hackers. Stuff that matters.
Re:Clear Your Terminal in Style by adren123 on Thursday March 05, 2020 @07:41AM (#22493033)
the full monty: alias c='echo -e "\033c" ; stty sane; setterm -reset; reset; tput reset; clear'

doesn't only clear the screen, but also escape any "broken" terminal configuration such as output of a binary on the tty

Re:Clear Your Terminal in Style by JdeBP on Thursday March 05, 2020 @12:16PM (#22495613)
One can spot cargo cult command-line use when two pairs of the commands overlap functionally, and another triplet is the same program by different names.

Also note that RIS is a bad idea, discouraged since 1983 I recently discovered, although DEC did not think to tell people outside DEC this for half a decade. Use DECSTR.

Re:Clear Your Terminal in Style by Fnoord on Thursday March 05, 2020 @10:01AM (#22494032)
setterm does not work on macOS. I find reset(1) working fine. It already does clear, too.
Re:Clear Your Terminal in Style by JdeBP on Thursday March 05, 2020 @12:19PM (#22495646)
One of these days, someone will take my portable setterm, which compiles fine on FreeBSD, and compile it on MacOS. (-:

* http://jdebp.uk./Softwares/nosh/guide/commands/setterm.xml