Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG?] If true-color is used, overlapping colors do not work
- X-seq: zsh-workers 43810
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: [BUG?] If true-color is used, overlapping colors do not work
- Date: Fri, 9 Nov 2018 16:39:14 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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 :cc; bh=qZNLqLKB5g3SSZTXwnky5IGtUJ6lNa+AyuSGuSyOO4c=; b=G9V8QNW4oob8cXc/f59HRrTxN2CtRBo2u7v3hZCnT1Zoylji0ccc8EFSoYgfe4Cp+a +PThRQOuA4kMd96j4VYKzqK4ICNMdvLJFzHvaBeH/0BwFmQcUlXp76TQqKynOdXdTi6Z lp4LPgoIMlG6x50us63l6iJd1Ta46l0/DZBTL+dV9mlerAvKyXtfE6TB3dIjho/DeUEI fIvPKx9/mKav2zYZw7TaqLWto1ERyNYMSZD0GmV+Veo8dmXWOFfCa4RtJgfsDSszivtY 1c7QiZgWqGRgJ3to+In/GLVQWeY3euCL8IiVPLYmk6Z2d1tOJuj40UJt8lHn6pVwd/iK pxDw==
- In-reply-to: <20626-1541726901.821000@xGvJ.shtD.SkCN>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDgEtfLAibbxRr36=UgPoPk8grvsH5G2+AOipr_vmt-cQ@mail.gmail.com> <2362-1541646201.813952@nGIL.zWP_.YhaK> <CAKc7PVAPxxtSaV5qMWzaueW+9_ZHXrHYX2032cHYYDq3Gh399w@mail.gmail.com> <20626-1541726901.821000@xGvJ.shtD.SkCN>
On Fri, 9 Nov 2018 at 02:28, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
>
> Sebastian Gniazdowski wrote:
> > I've applied the patch and recompiled, and the tests or the Ctrl-a
> > (with Src/zsh -fi) snippet show now change?
>
> Working through each of your tests manually, they all seem to work fine
> for me if judged purely on the basis of what I see in a terminal. I've
> checked more than one terminal programme including ones with and without
> true colour support.
Ah I've applied only the black color patch, with also the first patch,
everything works fine.
> I get differences before the tests even reach the final buffer state. The
> fact that all the setup lines get repeated back in the test output
> really isn't helping the matter. The differences are all escape
> sequences which diff is not showing, e.g 1b 5b 6d occurring at the start
> of each line. There are also further differences that can be put down to a
> difference of termcap definition. The only hope would be to strip the output
> down to just the section actually being tested (which comptest manages),
> also using something like:
> zle_highlight=( fg_start_code:FGSTART fg_end_code:FGEND fg_default_code:FGDEF )
> and perhaps zle -T somehow to map escape sequences to something readable
> somehow contriving to set TERM to something that claims 256 colour support.
> And, only relying on the portable subset of sed syntax.
> It's not without reason that I was too lazy to attempt this in the first
> place.
I'm stripping down the escape codes that Zsh/Zle normally produces
managing output. It appears that your setup generates some additional
codes. This should be only a matter of altering // substitution and
sed invocation, but maybe your right, maybe updating zle_highlight /
fg_start_code / fg_end_code is the right way.
--
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