On Fri, 26 Apr 2002 11:05:53 wbh wrote:
On Fri, 26 Apr 2002 Jenny_Hopkins@toby-churchill.com wrote:
Hi list, I'm constantly opening binary files using cat from the command line by mistake, then after quitting out the console displays all text in weird symbols. Is there anyway to reset the console when this happens? Thanks,
Usually: stty sane or for bad cases: printf "\017"
What's this newfangled "reset" thingy do???
Each type of terminal has a definition as part of the terminfo database and part of that definition is an initialisation string to be sent to the terminal to get it to a known state. The reset command resets the kernel tty driver state for the terminal first (translations and special characters) and then sends the init string from the terminfo database.
There is more info in the man entry for reset.
Steve.