delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/30/20:19:42

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Color Schemes
Date: Thu, 31 Aug 2006 01:19:26 +0100
Message-ID: <04d201c6cc93$1e0ec0e0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <ed57k4$bq8$1@sea.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 31 August 2006 00:40, mwoehlke wrote:

> Dave Korn wrote:

> 
>> Unfortunately I don't know anything about how to make cygwin aware of these
>> colours.
> 
> Aware? Cygwin is never aware of them; that's the point. All the terminal
> knows is '1;32', '0;37', etc. It is the job of the terminal emulator to
> decide how to present those. That's the whole point of my suggestion to
> change them at that level, where the underlying programs *don't* know a
> thing about it. That way they can't break it. :-)
> 
> It sounds to me like what Richard is currently doing is changing the
> color code used for the default background (which will cause problems),
> rather than leaving it alone and changing the presentation of the
> various color codes.

  Indeed, and referring back to his original mail, the problem is that every
utility seems to require a different way of setting the colours he uses,
whereas he wants some global setting /like/ the properties but in a
cygwin-aware fashion.

  AFAIUI, the mapping of escape codes to which visual colours they mean is
utterly fixed by ANSI, and it is, as you say, the termulator's job to display
the correct visual colour.  We could attempt in cygwin's console-handling code
to look up the current console's current palette and attempt some kind of
best-fit matching, at least in theory, but there's still the old SHTDI problem
there....

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019