I have written a telnet server in c#, using tcp/ip. I send strings back n forth.
I want to disable local echo for when the user is prompted to enter their password. I have combed the net, and found that sending a telnet escape character xFF followed by other characters can do this. I've tried it, and it simply echo's these characters onto the screen rather than interpreting them.
If you have any idea how to do this, please post me a bit of code that tells me how. I've set up all the connection and everything:
NetworkStream ns = myClient.GetStream();
StreamWriter sw = new StreamWriter(ns);
StreamReader sr = new StreamReader(ns);
I send strings with sw.Write followed by a flush().
All help appreciated! I have tried various things already, but failed. Good luck!