Para o bash eu normalmente só digito reset
e ele conserta tudo o que ficou "engraçado". Parece que também é conhecido como tset
, mas invocar cada um faz algo um pouco diferente.
tset, reset - terminal initialization
When invoked as reset, tset sets cooked and echo modes, turns off
cbreak and raw modes, turns on newline translation and resets any unset
special characters to their default values before doing the terminal
initialization described above. This is useful after a program dies
leaving a terminal in an abnormal state. Note, you may have to type
<LF>reset<LF>
(the line-feed character is normally control-J) to get the terminal to
work, as carriage-return may no longer work in the abnormal state.
Also, the terminal will often not echo the command.