Sometimes my Terminal gets broken by either displaying binary files, or sometimes caused by a broken ssh connection.
You can fix it by copy pasting the following line:
1 2 3 | |
You might not see the charaters even after pasted to the terminal, but keep on press ENTER, and suddenly your terminal is back to normal.