While executing commands in Terminal, under certain circumstances a script may begin displaying garbled text. It is possible that a binary file was accidentally displayed or edited. If this occurs you can reset Terminal to display text normally.
Choose Shell > Reset.
If the reset doesn’t work you can try choosing Shell > Hard Reset.