zsh-workers
 help / color / mirror / code / Atom feed
From: Adam Spiers <adam@spiers.net>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Something wrong with prompt themes
Date: Tue, 7 Dec 1999 01:59:44 +0000	[thread overview]
Message-ID: <19991207015944.C4276@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <991206164448.ZM24794@candle.brasslantern.com>

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.


  reply	other threads:[~1999-12-07  1:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-06 13:19 Sven Wischnowsky
1999-12-06 16:44 ` Bart Schaefer
1999-12-07  1:59   ` Adam Spiers [this message]
1999-12-07  1:44 ` Adam Spiers
1999-12-07 17:54   ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
1999-12-07  9:10 Sven Wischnowsky
1999-12-06 12:37 Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19991207015944.C4276@thelonious.new.ox.ac.uk \
    --to=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).