Some programs unintentionally leave the text console in a strange state, especially if a program dies prematurely. The clear program does a pretty good job of getting the terminal session working as it should. Another option which doesn't always work as well, but should produce a usable terminal session is:
stty sane