First, I am assuming that Martin's analysis/distillation of the OP's issue is 
correct, and
that this is (simply) an issue of the terminal echo being turned off.

Given that, I would like to point out that tcsh, to its credit, always resets 
the terminal
to "sane" before prompting for user input.  This is a Good Thing and something 
that
(IMNSHO), bash should also do.

Note, that (rhetorical) you could (probably, since I have not tested it) 
implement this
yourself using PROMPT_COMMAND, but, again IMNSHO, it should be built-in.  I 
can't think of
any argument against it (note that it is only when the shell is about to prompt 
for a
command - you can still turn echo off in your scripts and so on, if you like).

Also note (mainly for OP's benefit): to recover from this you need to learn the 
trick of
typing in "stty sane^j" blind.  Note that the line terminator sometimes has to 
be ^j
(Newline), not the usual ^m (Enter or Carriage Return).  And if you are not 
comfortable
with this, then sometimes it is easier just to disconnect (close the terminal 
window) and
log back in.

=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.

When responding to my posts, please try to refrain from giving bureaucratic 
answers.
If you have nothing useful to say, then just click Next and go on.

Reply via email to