mac os x path environment variable
Reset garbled Terminal window on OS X
If your terminal has been shifted into “alternate character set” mode and you want to reset the terminal without closing the window and reopening it type
at your (garbled) shell prompt. Your typing will appear garbled, too, but it will be back to normal after this command finishes.