* Are there 8 or 16 colors ??? @ 2002-01-08 17:20 Joel CARNAT 2002-01-08 17:25 ` Phil Pennock 2002-01-08 17:40 ` Bart Schaefer 0 siblings, 2 replies; 3+ messages in thread From: Joel CARNAT @ 2002-01-08 17:20 UTC (permalink / raw) To: zsh-users Hi, 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... thX for answers, Jo ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Are there 8 or 16 colors ??? 2002-01-08 17:20 Are there 8 or 16 colors ??? Joel CARNAT @ 2002-01-08 17:25 ` Phil Pennock 2002-01-08 17:40 ` Bart Schaefer 1 sibling, 0 replies; 3+ messages in thread From: Phil Pennock @ 2002-01-08 17:25 UTC (permalink / raw) To: Joel CARNAT; +Cc: zsh-users [-- 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 --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Are there 8 or 16 colors ??? 2002-01-08 17:20 Are there 8 or 16 colors ??? Joel CARNAT 2002-01-08 17:25 ` Phil Pennock @ 2002-01-08 17:40 ` Bart Schaefer 1 sibling, 0 replies; 3+ messages in thread From: Bart Schaefer @ 2002-01-08 17:40 UTC (permalink / raw) To: Joel CARNAT, zsh-users 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-08 17:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-01-08 17:20 Are there 8 or 16 colors ??? Joel CARNAT 2002-01-08 17:25 ` Phil Pennock 2002-01-08 17:40 ` Bart Schaefer
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).