zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: What happens when passing `fg=...,fg=...' to region_highlight, how is this defined?
Date: Tue, 11 Sep 2018 15:17:23 +0200	[thread overview]
Message-ID: <CAKc7PVCRaA17RT9V5+vLrC3Tt8awW8b8Npy_u7Q43qj5TWLp9Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]

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

[-- Attachment #2: fg-114,fg-55..57.png --]
[-- Type: image/png, Size: 11216 bytes --]

             reply	other threads:[~2018-09-11 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 13:17 Sebastian Gniazdowski [this message]
2018-09-11 13:27 ` Sebastian Gniazdowski
2018-09-11 13:39   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVCRaA17RT9V5+vLrC3Tt8awW8b8Npy_u7Q43qj5TWLp9Q@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).