Re: Ansii auto detection

From: Yura Ushakhow (yura@sunet.ru)
Date: 04/27/02


Templar Viper wrote:
> So, my question is: Is there a way to check if the client is
> _really_ capable of displaying colors automaticly? (So not
> by querying "do you want color? Y/n")

Without going too much into the question, I can think of telnet option
that declares a type of terminal the side wishes to use.  Based on the
received information we can assume whether the terminal can show
colour or not.  I don't think there is a universal way to find out if
the client side is capable of displaying it, other than directly saying
what is your terminal, checking through your base (or use UNIX's termcap
directly, why not) records to see what the client can or can't do with
their terminal....

So, first of all you have to clerify -- which terminal emulation will
be used; then, simply, based on that decision, you know what they can
or cannot do. It is their own fault if they declare "we support ANSI"
and can't do colour!

Right now you are using at least two layers of protocols, as I understand
it: the telnet protocol and a protocol of terminal emulation.  And if
there might be a way to gain the knowledge you need through the former,
I doubt that you can ask the "terminal emulation protocol". ;)  Just
thinking aloud, correct me if anything...

--
Yura Ushakhow <yura@sunet.ru>
Moscow, Russia

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT