X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: mwoehlke Subject: Re: Color Schemes Date: Thu, 31 Aug 2006 12:59:09 -0500 Lines: 50 Message-ID: References: <04d201c6cc93$1e0ec0e0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <20060831170223 DOT GA1392 AT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/