Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Very often I encounter this problem in my Debian VPS. When I type characters, the terminal refuse to display them. Instead I get a beep and shows outputs like

(arg : 4)
(arg : 5)
(arg :-1) 

And then, after a while the problem resolves automatically and I can resume typing. I'm wondering what can cause this problem? and how to counter it.

Thanks

share|improve this question
    
Did you press Alt + numeric? –  quanta Aug 31 '12 at 18:12
    
Do you mean 'Alt'+ NumLock? In that case, no. I did not do that. –  alfish Aug 31 '12 at 18:47
add comment

1 Answer

If you press Esc and then some number or "-" and some number, bash will multiply your input by the number, e. g. pressing Meta+5 e will put eeeee on your command line. Before pressing e, the prompt will have been replaced by (arg: 5). So it's likely that your keyboard or some program is passing Esc/Meta(Alt) and numbers to your shell.

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.