Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: possible PATCH to colors function



On Mon, Jul 17, 2023 at 10:45 AM Jim <linux.tech.guy@xxxxxxxxx> wrote:
>
> [bf]g_bold for both <color> and <bright-color> produces  the same result.
>   bold with the same "intensity" for both <color> or <bright-color>

I get different results for all three faint/normal/bright, in both
Gnome terminal and xterm.  I'm reluctant to change the default
appearance of "normal" everywhere in order to accommodate terminals
that (seemlngly) don't fully support "bright".

Just for interest, try this:
% colors
% print -r $'\e['$color[faint]\;${color[bright-red]}m88888${reset_color}\
$'\e['${color[red]}m88888${reset_color}\
$'\e['${color[bright-red]}m88888${reset_color}

(or with $'\n' before each backslash).  Do you really see no change
from red to bright-red?

I'd be more inclined to create a $fg[faint-*] etc. to match the
addition of $fg[bright-*] although with the bright variants there's no
alternate way to obtain them.




Messages sorted by: Reverse Date, Date, Thread, Author