From: Phil Pennock <Phil.Pennock@globnix.org>
To: Joel CARNAT <joel_carnat@yahoo.fr>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: Are there 8 or 16 colors ???
Date: Tue, 8 Jan 2002 18:25:02 +0100 [thread overview]
Message-ID: <20020108182502.A20405@globnix.org> (raw)
In-Reply-To: <20020108182015.00b952f0.joel_carnat@yahoo.fr>; from joel_carnat@yahoo.fr on Tue, Jan 08, 2002 at 06:20:15PM +0100
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
On 2002-01-08 at 18:20 +0100, Joel CARNAT wrote:
> Is the color feature of ZSH enables 8 or 16 colors ?
> I mean, typing:
> echo "^[[0;32mhihi" gives a darkgreen
> echo "^[[1;32mhihi" gives a lightgreen (but bold)
>
> Can't I get a not bold lightgreen ?
> Looks like I only can get 8 normal and 8 bold colors...
zsh does not internally define the colours. That above is not zsh
outputting colours.
It's a property of the terminal. You're using the "ANSI Colour
Escapes". The colours and effects are defined and standardised by the
American National Standards Institute.
You could modify the source-code of the terminal program to handle more
colours and more effects. Many/most terminal programs will allow you to
change the precise colour-tones used through their normal config.
In all of this, zsh does nothing. There's a couple of added features
where zsh simply knows about the escapes and can output them.
--
Magizine: A weekly read for wise men
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
next prev parent reply other threads:[~2002-01-08 17:25 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 [this message]
2002-01-08 17:40 ` Bart Schaefer
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=20020108182502.A20405@globnix.org \
--to=phil.pennock@globnix.org \
--cc=joel_carnat@yahoo.fr \
--cc=zsh-users@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).