Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use Kubuntu. Sometimes after after I run a program from the terminal window and then kill it, I can no longer see what I'm typing.

The terminal window continues to function, and if I run 'ls' I get a listing as normal. The only strange thing is that I can't see what I type.

Any ideas what how to resolve this?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Try to reinitialize your terminal. Use the reset command.

share|improve this answer
    
Now, if I only knew how to recreate this scenario I could test it right away. Thanks. –  DanJ Apr 27 '10 at 15:31
add comment

This can happen if/when the program you were in has changed your terminal's "stty" settings. In particular one of the things that probably changed was that 'echo' was turned off. Programs should notice when they're interrupted and set your terminal back to how it was, but if they're not set to do so or if they're killed with a 'kill' signal, then your terminal is left without echo mode on and often with other terminal settings changed as well. To get back to normal settings, you can enter the command 'stty sane'. Because other settings besides 'echo' may have changed, you may need to end that command with a control-J (line-feed). I would go ahead and always just do "stty sane" followed by a control-J .

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.