[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

11451: Re: [MUD-Dev] Attracting players

[Full Header] [Plain Text]
From: Greg Miller <gmiller@classic-games.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 14 Oct 1999 13:12:19 -0500
References: [1] [2] <-newest
Organization: Kanga.Nu
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.

--
http://www.classic-games.com/
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@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev