Reset Terminal

If you’re using Terminal on OS X, just try ‘Send Reset‘ and ‘Send Hard Reset‘ in File menu.

Fix terminal size

Often occurs after screen.
Sometimes, try Control(ctrl)+L,
sometimes, try

Random characters after cat a binary file, often in SecureCRT

Unix: How to fix UNIX garbage characters in your terminal
QQ20140903-1
Run:

Press: Control(ctrl)+v, Control(ctrl)+o, Enter, Control(ctrl)+d

Newline does not work

Output like:

Run:

More…

These links might be helpful.
http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-4.html
http://www.cyberciti.biz/tips/bash-fix-the-display.html
http://docstore.mik.ua/orelly/unix/upt/ch42_04.htm

Reset Terminal by @sskaje: https://sskaje.me/2015/10/reset-terminal/