Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What happens when passing `fg=...,fg=...' to region_highlight, how is this defined?
- X-seq: zsh-users 23616
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: What happens when passing `fg=...,fg=...' to region_highlight, how is this defined?
- Date: Tue, 11 Sep 2018 15:27:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=v4dml8+/KkV4SjMqvEjg0Rv6mTIKYgNoh8WhKJazgog=; b=miqfg2DROwB5j0OyL8kNwtqZ26YX/eqcJ9fxLyit91Paieejgvx0c3Kr4aErYjqigB MiJS/lzxuXXcGmLEhUfwsa3cZ2KeNEtv0DgcPE0kKjFMPX501OjYvkszRsNGiXebeprv OfoNXQmUkKBHT4nZl0ErQuqWyvab2ctgub+Wmak1ySooCSc8y4v2zaBlL3scHt3ZoTss 4Tq5DuEROQqaUFyWs9xnAfLX5SKvxwnmeDMeI2bSaMopRlM9ERyUX0OhM8S0QxroBQPk qdo7itTGx5eTaed09KLWTkF7ZXYD7gpPq9lalluIqBpIfAAIQyGaSv6MrdV/g1QRUaVP hV0w==
- In-reply-to: <CAKc7PVCRaA17RT9V5+vLrC3Tt8awW8b8Npy_u7Q43qj5TWLp9Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCRaA17RT9V5+vLrC3Tt8awW8b8Npy_u7Q43qj5TWLp9Q@mail.gmail.com>
Just thought that maybe Zsh just sums up the color indices :)
Immediate confirmation is not there, 169...171 (114+55, etc.) goes
from reddish to a purple.
However looking little up, there is 157, 158, 159 that apparently
matches the colors of $PATH in the attached image.
I use this to see the palette:
▲ ~ which palette
palette () {
for n in {000..255}
do
colors+=("%F{$n}$n%f")
done
print -cP $colors
}
On Tue, 11 Sep 2018 at 15:17, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Hello,
> I'm trying to go shortcut in my plugin and in one place just append
> `,fg=...' after existing `fg=...', obtaining e.g. `fg=114,fg=55',
> hoping the last one will overwrite the first one.
>
> Well, maybe it's too hard stated that I plan to do this, I just
> checked if this works and obtained surprising results. Check out
> attached file for the results, it is also uploaded to my shell
> account: http://psprint.blinkenshell.org/fg-114,fg-55..57.png (the
> file is pngcrush-ed, to limit message size).
>
> So it's about the word "$PATH". First line is fg=114,fg=55, then
> second line goes fg=114,fg=56, and third goes fg=114,fg=57 in the
> region_highlight element. All 3 colors of $PATH differ in the image.
> Actual color 114 is PaleGreen3 (color names from:
> https://jonasjacek.github.io/colors/), actual 55..57 go from purple to
> violet, all in dark brightness.
>
> But the output, i.e. color of word "$PATH" in attached image, goes
> from light green to light cyan.
>
> So what's happening? I've tested 2 terminals, iTerm and ExtraTerm.
> Also tried other combinations of colors, the results were similar, but
> here I just focused on the three 55..57. I write because I sense some
> possible feature heh? Some mixing of colors? Or some bug in a more
> serious situation than this `double-fg=' case.
>
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author