From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23616-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c3fb3579 for ; Tue, 11 Sep 2018 13:27:50 +0000 (UTC) Received: (qmail 1602 invoked by alias); 11 Sep 2018 13:27:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23616 Received: (qmail 7702 invoked by uid 1010); 11 Sep 2018 13:27:37 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.51):SA:0(-1.9/5.0):. Processed in 2.045668 secs); 11 Sep 2018 13:27:37 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=v4dml8+/KkV4SjMqvEjg0Rv6mTIKYgNoh8WhKJazgog=; b=HtTi+wNZFKe3ndaL16nAgmnikc+KB1djnEFd0r6G0Dfwk13GyE2ybA++Go2SiFhV7Q Kj8YVr8gRR4SnrJV8E+ijsJ8YagWbXyQlVYT26BnxMaHV05Bh+Rfjoz+bTRVL124DZ9w 93CKJcOrV4h3Frz4vvrK2AS7tFBCpDg5Vnto/RS7I7od69JKrgr1D30djO/GDLozb9AM ZHkvTEuU+EuzLuc/ty2wXTHos84TdFtIwo0pOP271+MNX/wBVgu7I5J2O3kf/btgmzUZ DfxbA2LV2pGc7LCarRH+nUqZOa9UTdng4IFqgFWCXd9vtggFUrLgNWnpWNm0f+CcPOCF TZUw== X-Gm-Message-State: APzg51CCbmabUNB+X1JWWts8qdHSofuCxt5V2DklQXvKvLhgij+cMH68 sh2pCzyJlKesi8psHqbwf6O2vVPEq7MJzRWWO0U6wXGX X-Google-Smtp-Source: ANB0VdbX8cigPOuUQskMl1aPUpSgwKG+2DIOf35O7iYB5iwIeDdWkMcHFu7Rr+fIGpJl0awM6zk8PqdwDrFaGfm6ibA= X-Received: by 2002:a54:4805:: with SMTP id j5-v6mr28686330oij.210.1536672452845; Tue, 11 Sep 2018 06:27:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Tue, 11 Sep 2018 15:27:20 +0200 Message-ID: Subject: Re: What happens when passing `fg=...,fg=...' to region_highlight, how is this defined? To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: =E2=96=B2 ~ which palette palette () { for n in {000..255} do colors+=3D("%F{$n}$n%f") done print -cP $colors } On Tue, 11 Sep 2018 at 15:17, Sebastian Gniazdowski wrote: > > Hello, > I'm trying to go shortcut in my plugin and in one place just append > `,fg=3D...' after existing `fg=3D...', obtaining e.g. `fg=3D114,fg=3D55', > 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=3D114,fg=3D55, then > second line goes fg=3D114,fg=3D56, and third goes fg=3D114,fg=3D57 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=3D' case. > > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin > Blog: http://zdharma.org --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org