问题
I have the same problem as How to unsupress local echo but none of the solutions in that thread are desirable.
Specifically, I'm using telnet for communication with a simply Ruby program that requires authentication to connect remotely. When the user is prompted for a password I want to suppress local echo, so I send the password prompt followed by IAC DONT ECHO, then send IAC DO ECHO after receiving a newline.
This method appears to work fine for most telnet clients, but when using windows 'telnet' (Windows XP SP2 version) I get back IAC WONT ECHO and IAC WILL ECHO respectively, but after the password prompt local echo is permanently disabled.
Does anyone know of a work around for this, or will I just have to avoid windows telnet?
回答1:
I don't think I could be accused of Windows bashing if I say there are better alternatives to Windows telnet.
Putty is a popular alternative.
来源:https://stackoverflow.com/questions/1356153/windows-telnet-controlling-local-echo-from-remote