Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My Slackware TTY can be broken easily by running:

cat some_binary_file

After the command, the entire TTY will no longer display readable characters but still responds to keyboard events.

Even if I logout and login again, the TTY is still broken and does not show readable characters anymore. I must restart the machine to restore normal TTY operation.

Is there a solution without restarting entire machine?

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

Run echo ^v^o, that is echo and then Ctrl-v and then Ctrl-o, Enter. You will not see the Ctrl-v. It will display as echo ^O. Ctrl-v sets it into verbose mode, passing through control characters, and the Ctrl-o will reset the terminal.

share|improve this answer
1  
Just a short hint: If the TTY is completely unusable or a logging console you can reset it easily from any other TTY with echo ^v^o > /dev/ttyN where N is the number of the terminal. –  Torben Feb 24 at 11:52
add comment

Usually, running reset resets the terminal. Some key bindings from .inputrc might be lost, though.

share|improve this answer
    
thank you, this also works –  Howard Sep 3 '13 at 22:57
add comment

You can try the ANSI reset command:

printf "\033c"
share|improve this answer
    
thank you, this also works –  Howard Sep 3 '13 at 22:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.