I have an application where I accept a socket connection from a telnet client and put up a simple, keyboard driven character GUI.
The telnet client, at least on Linu
Kevin's solution works great: write(s,"\377\375\042\377\373\001",6);
write(s,"\377\375\042\377\373\001",6);
Although the comment is slightly wrong. It should say "DO LINEMODE", not "WONT LINEMODE", ie: // IAC DO LINEMODE IAC WILL ECHO
// IAC DO LINEMODE IAC WILL ECHO
(Source: rfc854)