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 "tail -f" to monitor log files. After interrupted by ctrl-c, the shell doesn't display my input chars from keyboard any more. Something like

terminal> tail -f /log/a.log
then ctrl-c
terminal> 

No matter what I input, it doesn't display it. But after hitting "enter", it will get run my input command if no typo (unseen).

Seem it's a shell setting problem.

share|improve this question

migrated from stackoverflow.com Feb 9 '11 at 1:09

This question came from our site for professional and enthusiast programmers.

2  
The reset command will sort this out for you. –  ar. Feb 8 '11 at 5:21
    
Is Ctrl + C taking tail to background? try the command fg to get it back if that is the case –  gsk Feb 8 '11 at 5:26
    
yes, reset works. thanks ar. –  Anonymous Feb 8 '11 at 5:31

1 Answer 1

with gnu tail, the -f does not play any sort of cursor games (i.e. ncurses library routine) so you shouldn't ever have that problem.

1) try interrupting with ctrl-z and seei if the problem still shows up

2) try running with the -q flag as well

share|improve this answer

Your Answer

 
discard

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