Fix shell terminal after cat-ing a binary or echoing some encrypted content
Ever had the putty/securecrt/terminal looking like this after cat-ing a binary or echoing encrypted content ?
Code:
[⎼⎺⎺├@├⎺⎼ ·]#
[⎼⎺⎺├@├⎺⎼ ·]#
[⎼⎺⎺├@├⎺⎼ ·]#
[⎼⎺⎺├@├⎺⎼ ·]# ␊␌⎺ '\17'
\17
[⎼⎺⎺├@├⎺⎼ ·]# ␊␌⎺ -␊ '\␊(0'
There are many solutions on the web, but not all work all the time. Here's one that worked everytime for me:
Code:
echo -e '\017'
_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com