Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Nov 13, 2019 4:32 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - Normalizing terminal prompt (or putty prompt) after catting a binary file
Author Message
Post subject: Re: Normalizing terminal prompt (or putty prompt) after catting a binary file  |  Post Posted: Mon Jul 29, 2013 1:02 am
thank you very much for sharing this. its very helpful
Post subject: Re: Normalizing terminal prompt (or putty prompt) after catting a binary file  |  Post Posted: Wed Aug 04, 2010 5:39 pm
Code:
[root@server]$ cat /etc/localtime
'5´à'õ
`(äû`)Ôì`*ÄÝ`+´Î`,¤¿`-$ à-°`.
                             P/t`0duP1]®à2r{Ð3=»4R58Ýa9ûv:½C;ÛX<¦_=»:>A?@f#A
                                                                            9BFCd
                                                                                 
E⎼▒⎽␊ ⎽␊├ ├⎺ ␉▒␌┐⎽⎻▒␌␊.
[⎼⎺⎺├@┬┬┬ /┤⎽⎼/⎻⎺⎼├⎽/┌▒┼±/⎻␤⎻5-␊│├␊┼⎽␋⎺┼⎽]# ␊␌␤⎺ -␊ '\017'

[root@server]$

After echo -e '\017' the terminal prompt is fixed.
Post subject: Normalizing terminal prompt (or putty prompt) after catting a binary file  |  Post Posted: Wed Aug 04, 2010 3:44 am
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:
Code:
$ echo -e '\017'

or
Code:
$ reset
(NOT REBOOT)
or
Code:
$ stty sane
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO