[MUD-Dev] Attracting players
gmiller at classic-games.com
Thu Oct 14 13:04:11 New Zealand Daylight Time 1999
David Bennett wrote:
> On 10/4/99, at 12:57 PM, Matthew Mihaly wrote:
> >Hmm, I wasn't aware it was possible for a server to determine if a
> >player's client can decode colour. How is this done?
> Telnet suboption negotiation. It is in the RFC... But, what you do is
> send IAC SB TELOPT_TTYPE TELQUAL_SEND IAC SE. All of those defines should
> come from the telnet.h include file in /usr/include/inet/arpa I think.
> This will return the terminal type to you as:
> IAC SB TELOPT_TTYPE TELQUAL_IS <terminal name> IAC SE
> You can keep repeating the request for terminal types until you get back
> the same result twice. This means the list of different names for the
> terminal has been exhausted.
> You can also do things like find out the users current rows and colums
> using this command (and it will also tell you when the window size has
> changed too). You change the TELOPT_TTYPE for TELOPT_NAWS
It's amazing what you learn when you actually read RFCs. I'd missed this
option for years until your message.
Conspiracy theorists mistakenly assume others think before acting.
*** Please limit .sigs to four lines and avoid HTML mail or posts. ***
MUD-Dev maillist - MUD-Dev at kanga.nu
More information about the MUD-Dev