From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4038 invoked from network); 18 Aug 2000 17:51:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Aug 2000 17:51:36 -0000 Received: (qmail 23137 invoked by alias); 18 Aug 2000 17:51:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12679 Received: (qmail 23130 invoked from network); 18 Aug 2000 17:51:18 -0000 Date: Fri, 18 Aug 2000 10:51:09 -0700 (PDT) From: Bart Schaefer Sender: schaefer@aztec.zanshin.com Reply-To: Bart Schaefer To: Adam Spiers cc: zsh workers mailing list Subject: Re: Misc/colors In-Reply-To: <20000818173340.A30095@thelonious.new.ox.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 18 Aug 2000, Adam Spiers wrote: > However, I just noticed: > > % > % echo "$fg_bold[green]foo$fg_bold[grey]bar" > > yields the 'bar' in green. That can't be right can it? There isn't any fg_bold[grey] any more ... because there's no ANSI color number for the color "grey". What you were calling "grey" is what ANSI calls "black", even though to get a really black-looking black you have to use "bold black". There is color[fg-grey] but the loop that maps $color onto fg, fg_bold, etc., does a reverse lookup on the corresponding color number and gets "black". I've forgotten whether I did that on purpose.