Powered By Blogger

Friday, 25 May 2012

Normalizing terminal prompt (or putty prompt) after catting a binary file

Some binaries or some command output (unexpected) can contain control sequence which can cause a terminal to interpret it as changing character set. That's why the prompt becomes unreadable and keystrokes abnormal (lines).

To fix this, there are few possible solutions:

 $ echo -e '\017'
or
 $ reset
or
 $ stty sane

No comments:

Post a Comment