zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Joel CARNAT <joel_carnat@yahoo.fr>, zsh-users@sunsite.dk
Subject: Re: Are there 8 or 16 colors ???
Date: Tue, 8 Jan 2002 17:40:12 +0000	[thread overview]
Message-ID: <1020108174012.ZM11323@candle.brasslantern.com> (raw)
In-Reply-To: <20020108182015.00b952f0.joel_carnat@yahoo.fr>

On Jan 8,  6:20pm, Joel CARNAT wrote:
} 
} 	Is the color feature of ZSH enables 8 or 16 colors ?

There is no color feature of zsh.  There's a color feature of certain
terminals and terminal emulators.  It's up to the terminal what colors
you actually see when you echo one of those sequences.  Zsh has some
features to allow it to use the colors provided by the terminal, but
that's all.

} 	Looks like I only can get 8 normal and 8 bold colors...

See the "User Contributions" section of the documentation, under "Other
Functions", the description of the "colors" function.  ("man zshcontrib"
if you don't use the texinfo docs.)  I quote:

     The eight base colors are: black, red, green, yellow, blue,
     magenta, cyan, and white.  Each of these has codes for foreground
     and background.  In addition there are eight intensity attributes:
     bold, faint, standout, underline, blink, reverse, and conceal.
     Finally, there are six codes used to negate attributes: none
     (reset all attributes to the defaults), normal (neither bold nor
     faint), no-standout, no-underline, no-blink, and no-reverse.

     Some terminals do not support all combinations of colors and
     intensities.

Some terminals implement "black" as a dark grey and "white" as a very pale
grey so that the "bold" versions of those colors can be true black and true
white (and thereby stand out against their dimmer "normal" colors when the
normal colors are used as the background).  It sounds like your terminal is
doing something similar with green.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      parent reply	other threads:[~2002-01-08 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-08 17:20 Joel CARNAT
2002-01-08 17:25 ` Phil Pennock
2002-01-08 17:40 ` Bart Schaefer [this message]

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=1020108174012.ZM11323@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=joel_carnat@yahoo.fr \
    --cc=zsh-users@sunsite.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).