I'm on OSX 10.11.1 and occasionally my bash terminal gets mangled. It often happens when I accidentally cat
a binary file. The result can be seen on the image below. The output becomes weird, and I can't type ascii characters anymore.
Even though this happens occasionally, I couldn't find a way to consistently reproduce the issue. Online search recommends doing cat /bin/*
, but that works sporadically, only after a couple dozen tries.
I want to do this so I can find an easy solution how to handle this in tmux
.
How do I consistently get bash to a "mangled" state? Is there maybe a magic unicode character that can do this?
reset
as necessary. – chepner Nov 09 '15 at 14:24