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

Re: Prompt coloring question



On Sun, Jul 13, 2008 at 19:52, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:


> $'%{\e[1;32m%}' is not "light green", it's "bold green" -- the "1" is
> bold, the "32" is green.

I just tried again, at least konsole shows the colors in a lighter shade
when they are prefixed by 1;, perhaps because that is konsole's way
to show bold fonts, I don't, know.


>  Similarly, $'%{\e[0;31m%}' is not "red", it's
> "turn everything else off" (0) and then "red" (31).  That first "0"
> disables %S before it has a chance to do anything.  If you were to use
> %S%{$'\e[31m'%} without the "0;" it would work as expected.

Thanks!


Richard



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