X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: mwoehlke Subject: Re: Color Schemes Date: Wed, 30 Aug 2006 18:29:13 -0500 Lines: 63 Message-ID: References: <04ba01c6cc81$93337b70$a501a8c0 AT CAM DOT ARTIMI DOT COM> <83FFB2C3A0EAAB418A35DFA0FBCD60EC02312FAC AT nsc-exch DOT nationalsystems DOT com> 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: <83FFB2C3A0EAAB418A35DFA0FBCD60EC02312FAC@nsc-exch.nationalsystems.com> 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 Richard Lynch (Contractor) wrote: > I'm starting cygwin from the Start menu that cygwin installed, which windows > 'properties' show as mapped to: > C:\cygwin\cygwin.bat > > I used the 'Properties' in that window to get the scheme I wanted, and > applied to the thingie that launched this shell. > > I've also modified the 'properties' from the Start menu item directly, and > clicked on the pretty color icons instead of typing the digits, as suggested. Um, wait, I suggested doing the exact *opposite*. I thought that maybe you could change the mappings so that things asking for black would get white, vice versa, and so on. However, you have to be careful to re-select the original "pretty color icon" when you are done, or things that don't ask get what you had selected. This leads to things like a '1;37' background with '1;37' text, which, as you noticed, makes for 'invisible ink'. What I think you want to do is tell the CUI that '0;30' should be '255,255,255', '1;37' should be '0,0,0', etc, so that you will have something that is legible in all circumstances (unless something is asking for the same foreground and background, in which case you were screwed even before you started tinkering - but I haven't seen any Cygwin programs with that problem). > It "works", even on launching another, in that I can change the color scheme > of the bash shell any way I like, but it has no effect I can tell on the ANSI > colors of termcap which define 'less' behaviour, nor the LS_COLORS that > define 'ls' behaviour. If you change the numbers as I mentioned, then anything asking for e.g. '1;31' will show up as whatever you changed 'bright red' to be. > My 'man man' output now looks like this: > > ------------------- > man - format and display the on-line manual pages > > man [ ] [ ] [ system] [ string] [ config_file] [ > pathlist] [ pager] [ section_list] [section] name ... > ------------------- > > Note that all the things that 'less' would reverse-video are effectively > "invisible" This implies that you have somehow set the default background color to '1;37'. Less is then displaying text as '1;37'. I don't think you can change less without hacking it, but I don't think you want to; if you go this route, you'll be chasing down this issue in dozens of programs. > Editing /etc/termcap by hand, however, is way beyond my skill level, and I > been doing this stuff for a couple decades... I am not sure what you would accomplish by editing termcap; I don't think termcap has any control over this (except maybe you could disable text attributes entirely, but I'm not sure what the point would be... and just setting TERM to something like maybe 'dumb' would take care of that). -- Matthew Now where did I put my hippo? -- 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/