[MUD-Dev] Attracting players

David Bennett ddt at discworld.imaginary.com
Mon Oct 4 14:01:31 CEST 1999


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

Good luck,
David.



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list