After having played with curl, a binary file has been dumped inside my terminal. For example, the horizontal lines: ─ I use to format my prompt are replaced by 'q', and it can be much worse.
Why does this happen, and how can you fix it without having to close the terminal ?
cat /dev/urandom
, abort with Ctrl-C. Also, @Antoine, you could examineclear
. I know you said "terminal", but, in the Linux console, there is (besidesclear
andreset
)clear_console
as well. – Emanuel Berg Oct 13 '12 at 13:24reset
has been known not to solve this.echo -e '\017'
can help there. – Alexios Oct 13 '12 at 15:53The mentioned "stty sane" command does the job better – John Sep 23 '16 at 21:43
echo -e '\017'
, nothing else would work – JohnRDOrazio Jul 28 '20 at 00:00