delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/03/13:34:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Wed, 3 Mar 2010 10:34:59 -0800
From: Gary Johnson <garyjohn AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mintty colors
Message-ID: <20100303183459.GA11932@KCJs-Computer>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100303020741 DOT GD6520 AT KCJs-Computer> <416096c61003030905w4e9093f0pdefdbfc57c65ae28 AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <416096c61003030905w4e9093f0pdefdbfc57c65ae28@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
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

On 2010-03-03, Andy Koppe wrote:
> 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.
> 
> > I 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.

Except that mintty doesn't have its own terminfo database, so TERM
needs to be set to "xterm".

> (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.)

In that case, I can try putting that in my ~/.bashrc and see if any
problems result.

> > 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.)

To each his own.  I've found that with the monitors I'm currently
using, #007fff is a good compromise and has good contrast against
black and white as a foreground or background color.

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

Yeah, it's pretty close.

I downloaded the source for mintty-0.5.8 onto my laptop at home last
night, edited that ANSI color table and built it.  It went very
well and the result looks good.  I was about to do the same at work
today, but seeing your comment about unknown escape sequences being
ignored, I think I'll try the echo-in-.bashrc approach first.

Regards,
Gary


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