This usually happens when you have used "cat" and some weird characters that scrolled across have messed up the terminal.
Running the command
fixes that. Even when your terminal is so messed up that you cannot even see what you type, just type "reset" and hit ENTER.
Eric