You ever do something on the command line in a terminal and when it is done everything you type is a strange character? I did that again today so I thought I'd hunt down something to fix it rather than just exit and restart a new terminal window.
What I found that worked (in my bash shell) was to copy/paste the following into the terminal window:
alias vtn='echo "X[mX(BX)0OX[?5lX7X[rX8" | tr "XO" "\033\017"'
This creates an alias called vtn which, when executed, cleans up the mess!
I found this at the following location complete with an explanation of what is being done:
http://www.in-ulm.de/~mascheck/various/alternate_charset/#solution
My thanks to Sven Mascheck mascheck@in-ulm.de !!
Mike
No comments:
Post a Comment