X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: Color Schemes
Date:  Thu, 31 Aug 2006 12:59:09 -0500
Lines: 50
Message-ID: <ed781e$k2q$1@sea.gmane.org>
References:  <ed57k4$bq8$1@sea.gmane.org> <04d201c6cc93$1e0ec0e0$a501a8c0@CAM.ARTIMI.COM> <ed6sl3$7pb$1@sea.gmane.org> <20060831170223.GA1392@home>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.0
In-Reply-To: <20060831170223.GA1392@home>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

George wrote:
> On Thu, Aug 31, 2006 at 09:44:51AM -0500, mwoehlke wrote:
>> Dave Korn wrote:
> 
>>> 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....
>> [...] and I am not aware of any way to examine the terminal's 
>> "palette", nor should you need to. If a user wants to fiddle with 
>> these, it is his responsibility to keep things legible.
> 
> Huh?
> 
> $ grep color ~/.Xdefaults
> *color0:        #000000
> *color1:        #D1BFB1
> *color2:        #99CCCC
> *color3:        #C8B27F
> *color4:        #8DB6CD
> *color5:        #CC99CC
> *color6:        #A8A8D9
> *color7:        #7697A7
> *color8:        #000000
> *color9:        #80A0B0
> *color10:       #99CCCC
> *color11:       #40677A
> *color12:       #8DB6CD
> *color13:       #CC99CC
> *color14:
> *color15:       #87CEFF
> *colorBD:       #8DB6CD
> *colorUL:       #C8B27F
> *cursorColor:   #84A9A9
> 
> Or am I missing something?

Sure. Now do it for Konsole (hint: DCOP *might* let you), CUI, Console, 
rxvt, PuTTY, and every other terminal emulator in existence.

What you found is the *default* colors for *one* emulator (what happens 
if you override them with command-line switches?). Dave and I were 
talking about being able to query the terminal emulator in a 
standardized way, and I am pretty sure there is no such way.

-- 
Matthew
We apologize for the inconvenience.


--
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/

