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
For what it's worth, solved it myself.
// IAC WONT LINEMODE IAC WILL ECHO write(s,"\377\375\042\377\373\001",6);
gets the remote (at least telnet from an Xterm on a Linux box) into the right state.