From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3009 invoked from network); 7 Dec 1999 01:59:51 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Dec 1999 01:59:51 -0000 Received: (qmail 11828 invoked by alias); 7 Dec 1999 01:59:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8927 Received: (qmail 11818 invoked from network); 7 Dec 1999 01:59:44 -0000 Date: Tue, 7 Dec 1999 01:59:44 +0000 From: Adam Spiers To: zsh-workers@sunsite.auc.dk Subject: Re: Something wrong with prompt themes Message-ID: <19991207015944.C4276@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh-workers@sunsite.auc.dk References: <199912061319.OAA06256@beta.informatik.hu-berlin.de> <991206164448.ZM24794@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <991206164448.ZM24794@candle.brasslantern.com> X-URL: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.12 i686 Bart Schaefer (schaefer@candle.brasslantern.com) wrote: > Those characters are just stipple-patterns in a VGA console font; the > faded/shaded themes actually look best on the raw console of an x86-PC > unix system such as Linux (i.e. without X11). For an example screenshot of how they're supposed to look: http://www.new.ox.ac.uk/~adam/computing/zsh/ > It ought to be possible to use actual colors for the fade from one color > to another, but to do so for an arbitrary pair of colors would require > a ridiculously big lookup table to find the correct ANSI codes. Maybe > there's some algorithmic way involving an AA that keys the ANSI codes > on their RGB values ... Yep, this had already occurred to me, and made me realise for the first time ever (duh) that in fact the ANSI colour order does directly follow RGB: code | colour | RGB ------+---------+----- 0 | black | 000 1 | red | 100 2 | green | 010 3 | yellow | 110 4 | blue | 001 5 | magenta | 101 6 | cyan | 011 7 | white | 111 Sorry, that was probably almost insultingly obvious to anyone with a brain (that is, everyone here except me :-) But then that doesn't usually help determine intermediate colours for a gradient, because there isn't enough granularity when you're working at 3-bit colour depth. So I left it to the user in the end.