markhargrove
07-10-2005, 10:05 PM
I have what I suspect is a simple question, but I've not been able to find an answer (probably because I just can't find the right search keywords). If anybody can help me, I'd appreciate it.
I've just finished hacking my HR10-250 and all looks good -- with one very minor annoyance. Every time I press the 'Enter' key at the end of a bash prompt during a telnet session, I get an extra LF. The symptom is that I always get a double bash prompt. For example, if I type:
bash-2.02# ls <Enter>
filename1 filename2 filename3
bash-2.02#
bash-2.02#
The shell is clearly seeing an extra CR or LF, but I don't know how to correct this. I thought it might be an artifact of puTTy, but the same behavior occurs with telnet from WinXP but DOES NOT occur from a telnet session on a RedHat linux box. The output from stty -a is identical from sessions via puTTY and from RH telnet. If I simply type a ^M at the end of a line, or a ^J at the end of the line, there's no extra prompt. So it seems to me that my <Enter> key must be causing puTTY and the stock WinXP telnet to send both CR and LF -- I just can't find a setting to stop it.
Is this something simple that I'm just overlooking?
-M.
I've just finished hacking my HR10-250 and all looks good -- with one very minor annoyance. Every time I press the 'Enter' key at the end of a bash prompt during a telnet session, I get an extra LF. The symptom is that I always get a double bash prompt. For example, if I type:
bash-2.02# ls <Enter>
filename1 filename2 filename3
bash-2.02#
bash-2.02#
The shell is clearly seeing an extra CR or LF, but I don't know how to correct this. I thought it might be an artifact of puTTy, but the same behavior occurs with telnet from WinXP but DOES NOT occur from a telnet session on a RedHat linux box. The output from stty -a is identical from sessions via puTTY and from RH telnet. If I simply type a ^M at the end of a line, or a ^J at the end of the line, there's no extra prompt. So it seems to me that my <Enter> key must be causing puTTY and the stock WinXP telnet to send both CR and LF -- I just can't find a setting to stop it.
Is this something simple that I'm just overlooking?
-M.