in reply to Telnet Modes

There are a couple of ways to do it, which have varying degrees of success, depending on which clients you get.

1. Theres a telnet option called LINEMODE, in which if you *dont* set the EDIT option, means the client should use/be in char mode.

2. Plenty of clients don't know a thing about LINEMODE, in which case you can try DO SGA. (Which was/is originally an option to turn off GoAhead, but is recognised by a lot of clients as 'do charmode', apparently). Also, some clients insist on both 'WILL SGA' *and* 'DO SGA' before they actually do charmode.

You might need to send a 'Don't echo' option as well to get these to work.

C.

(Information gleaned from an experienced MUD server person - see also RFC 858 )

Replies are listed 'Best First'.
Re: Re: Telnet Modes
by narse (Pilgrim) on Aug 30, 2003 at 04:48 UTC
    Yes, Thank You. It turns out that suppress go ahead is what I really wanted. It took me some time to figure this out, but I needed to translate the dec values to oct and send them that way.

    The code I am using now looks like this:
    # send IAC WILL SUPPRESS-GOAHEAD put( "\377\373\3\n" ); # send IAC DO SUPPRESS-GO-AHEAD put( "\377\375\3\n" );
    (where put() sends a scalar argument to the user)

    Thanks all for your responses.