zsh-workers
 help / color / mirror / code / Atom feed
* Misc/colors
@ 2000-08-18 16:33 Adam Spiers
  2000-08-18 17:51 ` Misc/colors Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Spiers @ 2000-08-18 16:33 UTC (permalink / raw)
  To: zsh workers mailing list

It's been a long while since I looked at the prompt theming stuff.  I
really should get around to tidying it up soon.

However, I just noticed:

% <load in Misc/colors>
% echo "$fg_bold[green]foo$fg_bold[grey]bar"

yields the 'bar' in green.  That can't be right can it?  I'm a bit
relunctant to delve in the murky depths of Misc/color as it's changed
a lot since I last touched it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Misc/colors
  2000-08-18 16:33 Misc/colors Adam Spiers
@ 2000-08-18 17:51 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-08-18 17:51 UTC (permalink / raw)
  To: Adam Spiers; +Cc: zsh workers mailing list

On Fri, 18 Aug 2000, Adam Spiers wrote:

> However, I just noticed:
> 
> % <load in Misc/colors>
> % echo "$fg_bold[green]foo$fg_bold[grey]bar"
> 
> yields the 'bar' in green.  That can't be right can it?

There isn't any fg_bold[grey] any more ... because there's no ANSI color
number for the color "grey".  What you were calling "grey" is what ANSI
calls "black", even though to get a really black-looking black you have
to use "bold black".

There is color[fg-grey] but the loop that maps $color onto fg, fg_bold,
etc., does a reverse lookup on the corresponding color number and gets
"black".  I've forgotten whether I did that on purpose.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-18 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-18 16:33 Misc/colors Adam Spiers
2000-08-18 17:51 ` Misc/colors 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).