> I need some help with this snippet of code, for some strange > reason, I cannot get the telnet client into character mode: > > void charmode_on(struct descriptor_data *d) > { > char *on_string[] = > { > (char) IAC, > (char) DONT, > (char) TELOPT_LINEMODE, > (char) 0, > }; > SEND_TO_Q(on_string, d); > } > > Where the 'DONT' is I've tried DO, WILL, WONT, I've also tried to use > TELOPT_LFLOW, TELOPT_STATUS, TELOPT_NAWS, and a couple of others. > The proper string to put the telnet connection into character mode is: char on_string[] = { (char) IAC, (char) WILL, (char) TELOPT_SGA, (char) 0, }; When looking in references on working in character mode, you might have more luck looking up noncanonical mode rather than character mode. Eric +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST