delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/03/12:05:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100303020741.GD6520@KCJs-Computer>
References: <20100303020741 DOT GD6520 AT KCJs-Computer>
Date: Wed, 3 Mar 2010 17:05:34 +0000
Message-ID: <416096c61003030905w4e9093f0pdefdbfc57c65ae28@mail.gmail.com>
Subject: Re: mintty colors
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Gary Johnson:
> I have downloaded mintty-0.6-beta2-cygwin15.zip and read
> mintty-0.5.8.pdf, but I don't see a way to change the ANSI color
> palette other than to send escape sequences.

You're right, there isn't, as documented.

>=C2=A0I could echo the
> escape sequences in my ~/.bashrc, but mintty isn't the only terminal
> I use.

You could just make that bit conditional on the value of TERM.

(Also, the escape sequence for this was introduced by xterm, so it's
probably supported by other terminals as well. And unrecognised escape
sequences are supposed to be ignored anyway.)

> My specific problem is that the blue that mintty displays for ANSI
> color 4 or 12 is so dark that blue characters are illegible on a
> black background. I've adjusted the color that rxvt uses by putting
>   Rxvt.color12:               #007fff
>   Rxvt.color4:                #007fff

Blue (i.e. color 4) on black background is just a bad idea, full stop.
Brightening it up by default would impair its usability as a
background colour. (Try 'mc' with your setting.)

And mintty's default for colour 12 is #4040ff, which is much the same
brightness as #007fff.

Andy

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

- Raw text -


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