by eklitzke on 3/8/24, 5:16 AM with 99 comments
by dataflow on 3/8/24, 6:22 AM
by fuzztester on 3/8/24, 7:46 AM
stty sane Ctrl-J
or other variants. It mostly worked. Last resort was to switch the terminal off and on, and/or to kill the login shell from another terminal, IIRC.See: man stty
by DeathArrow on 3/8/24, 6:20 AM
I wonder who uses real terminals and for what.
by aumerle on 3/8/24, 8:50 AM
function reset { printf '\e]\e\\\ec' }
Uses the VT100 RIS escape code to ask the terminal to reset itself. But first it send an empty OSC escape to reset the terminals VT parser back to normal mode, so that the RIS escape code is parsed correctly. No need to depend on any external utilities like tput or the reset binary. This should work with any halfway decent terminal emulator.
by charcircuit on 3/8/24, 6:35 AM
The TERM environmental variable can be used