If you rely on local echo at the Telnet client, probably not. If your server is eching input, then just stop echoing when you ask for a password.
You can try working with the options described in RFC 857 - Telnet Echo Option though. Be warned that some Telnet clients don't seem capable of handling it.
I suspect most of your "Unix systems" (what, you never tried the Telnet Service that comes in many versions of Windows?) just echo the heck out of everything and stop during password entry as I described above.
For anyone that might one day have the same requirement, all I did was create a boolean variable that is true when a user has authenticated and false when not, and one where the username has been sent or not. Each time there is a DataArrival event, check the booleans and send spaces when prompting for a password, and echo the text in all other circumstances.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.