zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG?] If true-color is used, overlapping colors do not work
Date: Sun, 11 Nov 2018 06:11:14 +0100	[thread overview]
Message-ID: <CAKc7PVDvJne0bcD7NWf3V52fGqV7Oz26Cbv0idgM-9GCLKyYBg@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVBpL_HwKUHLD5mQCLmWszfnrbJ2ARyrkzVKsi6yStWeNA@mail.gmail.com>

On Sun, 11 Nov 2018 at 01:43, Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
> I've used zle -T tc tcfunc, which sets REPLY="", i.e. discards the
> codes. Should I change them to something? Because I'm only getting LE
> termcap command, moving cursor to the left (after printing POSTDISPLAY
> with zsh-autosuggestions text), some cd, ce, up commands and no codes
> for colors. Do you think I should not strip the termcap codes and
> specify them in test's expected output?

That was for non-zsh-f full featured Zsh session. I've added storing
of the termcap commands within the test. It's a sequence of only 2
codes, cd & ce:

<tc=cd,arg=>
<tc=ce,arg=>
<tc=ce,arg=>
<tc=cd,arg=>
...

I've checked their codes, they are the ^[[J, ^[[K that I'm removing by
// and in other (separate in execution) place by analogous sed
invocation. No other termcap command gets invoked during make
TESTNUM=X04. I wonder if maybe on your setup there is some other
termcap command invoked?


> I'm currently removing following escapes from all zpty output:
> - ^[[27m, ^[[24m, etc.
> - ^[[J
> - ^[[K
> - ^[[?2004h
> - e^Mexit -> exit
> - ^[[?2004l
>
> You seem to retrieve some other Zle-managing-output code (I think it's
> this) and the tests fail? Maybe it is already fixed by the late-Zle
> enabling, so you could try running the new test file?
>
> There are 6 tests currently:
>
> 0:basic region_highlight with 8 colors
> 0:basic region_highlight with true-color (hex-triplets)
> 0:basic region_highlight with near-color (hex-triplets at input)
> 0:overlapping region_highlight with 8 colors
> 0:overlapping region_highlight with true-color
> 0:overlapping region_highlight with near-color (hex-triplets at input)
>
> PS. Didn't yet search for terminfo file, just did export
> TERM=xterm-256, not actually sure how to search for the definition
> --
> 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

  reply	other threads:[~2018-11-11  5:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-07 13:19 Sebastian Gniazdowski
2018-11-07 14:40 ` Sebastian Gniazdowski
2018-11-07 19:19   ` Sebastian Gniazdowski
2018-11-08  3:48     ` Oliver Kiddle
2018-11-08  9:25       ` Sebastian Gniazdowski
2018-11-08  3:03 ` Oliver Kiddle
2018-11-08  9:19   ` Sebastian Gniazdowski
2018-11-09  1:28     ` Oliver Kiddle
2018-11-09 15:39       ` Sebastian Gniazdowski
2018-11-11  0:43       ` Sebastian Gniazdowski
2018-11-11  5:11         ` Sebastian Gniazdowski [this message]
2018-11-24 17:32         ` highlight test cases (was Re: [BUG?] If true-color is used, overlapping colors do not work) Oliver Kiddle
2018-11-30  0:34           ` Sebastian Gniazdowski
2018-12-07  1:55             ` [BUG] General 256 colors bug – zle_highlight / fg_start_code, etc. is not respected (was: highlight test cases) Sebastian Gniazdowski
2018-12-07 20:26               ` Sebastian Gniazdowski
2018-12-09 19:13                 ` Daniel Shahaf
2018-12-11  8:06                   ` Sebastian Gniazdowski
2018-12-10  2:54             ` highlight test cases (was Re: [BUG?] If true-color is used, overlapping colors do not work) Oliver Kiddle
2018-12-10 23:51               ` Sebastian Gniazdowski
2018-12-10 23:54                 ` Sebastian Gniazdowski
2018-11-11  5:38       ` X04 zle highlight tests, near-color bug Sebastian Gniazdowski
2018-11-18 15:34         ` Sebastian Gniazdowski

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=CAKc7PVDvJne0bcD7NWf3V52fGqV7Oz26Cbv0idgM-9GCLKyYBg@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@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).