Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Support more colors
- X-seq: zsh-workers 50194
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: subscriptions@pygos.space
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Support more colors
- Date: Tue, 10 May 2022 13:56:39 +0200
- Archived-at: <https://zsh.org/workers/50194>
- In-reply-to: <5af198ae-17e7-1136-8c6e-8e3008c43c00@pygos.space>
- List-id: <zsh-workers.zsh.org>
- References: <5af198ae-17e7-1136-8c6e-8e3008c43c00@pygos.space>
On 5/10/22, subscriptions@pygos.space <subscriptions@pygos.space> wrote:
> Terminals support a default and a strong setting for each color. The strong
> setting is taken for bold text.
> However it's currently not possible to also use it for non-bold text or for
> background color.
> By adding the strong colors separately, it's possible to do both by
> `$fg[strong-color]` and `$bg[strong-color]`.
colors is more or less obsoleted by the %F prompt escape already,
which already lets you use any color the terminal supports. For
example, %F{2} is green, and %F{10} (add 8) is what you call
"strong-green".
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author