[MUD-Dev] Attracting players
gmiller at classic-games.com
Thu Oct 14 13:12:19 New Zealand Daylight Time 1999
Caliban Tiresias Darklock wrote:
> On 12:57 PM 10/4/1999 -0700, I personally witnessed Matthew Mihaly jumping
> up to say:
> >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?
> If I remember right: ESC[6n is a "cursor position report" request. If the
> client groks ANSI, it responds with the current position of the cursor.
> Another method I've seen used is ESC[2J followed by the AVATAR code to move
> down one line and *then* the cursor position report; if your result is
> "0,2" then you know that the client supports ANSI but not AVATAR, if it's
> "1,0" then you know it supports AVATAR and ANSI. Note also that if the
> client reverses the X and Y coordinates, the responses are still distinct.
That's how you detect AVT/0... for higher levels of AVATAR, there are
codes that request a full line of human-readable info, including the
exact level of AVATAR support.
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