I have an application in which I accept a socket connection with a telnet client and expose a simple graphical interface with characters on the keyboard.
The telnet client, at least on Linux, works by default in a "turn-by-turn" mode, so I always need to do ^]mode char manually.
Resetting the corresponding RFCs implies that if my application simply sent IAC DONT LINEMODE (\377\376\042) as soon as the client connects, the client must be forced to character mode. However, this does not matter.
What is the simplest bit of code that will do the job? Perfectly simple string to send. My application can be swallowed by any unwanted client that sends back.
char default telnet
Markus Wandel Nov 07 '08 at 19:14 2008-11-07 19:14
source share