Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: true colour support
- X-seq: zsh-workers 43769
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: PATCH: true colour support
- Date: Tue, 6 Nov 2018 13:12:34 +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=ivXcZq272cPZkEhy8xWzTw1ja3f39yM9v4caxwboark=; b=b42JakBvA8tAS3vs6NszYvpYDeZMreLmIvRH7rMJkbrqpO8qpDrF45OdvaUA3buN61 2k1fkXsSmqdJUYT9+RosqfQ/1VZ56EO/9CbuqZryhc9VbkknegyGUs5l7UeHNW2QMETD Hf+m0stfvh5QdX4dH4knZ/nlIV4thQr/DyTV7KfT7IHAS7oZOwJ4UIPWOhuXaA/PWTHp 3KsentLWz3s+oABT6B37C1x8ky/byJiyiCfNAf+/IPo2aKmotPeqhiUyI5Lbik/OQenE r5TaXsfraYBO6mwuhosCIKWGd5ShGmQASUd61QnVI1iIPriIVpAqcz57Jy8g3n2grI17 9Nxg==
- In-reply-to: <14759-1541295720.747208@yAOj.Gon2.-2mF>
- 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: <CAKc7PVCEmTTMRR0P3kx9ktpLDBYqJ+MRsE77UMLFjonEZAixfA@mail.gmail.com> <58111-1540942908.680582@SXAw.BXd_.-x5N> <14759-1541295720.747208@yAOj.Gon2.-2mF>
On Sun, 4 Nov 2018 at 02:42, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> (...)
> I don't think there's any sense in trying to detect support for
> true colour. termcap/terminfo can't help us and it'll be more
> reliable to leave it to users to craft whatever heuristics work for
> those terminals that they use. No true colour escapes will ever be
> generated if you don't specify colours as hex triples anyway. And
> even if they are, they should be ignored. For what it's worth,
> checking for *(truecolor|24bit)* in $COLORTERM is a reasonable test
> with the nearcolor module from the first patch acting as a fallback.
> And, you might want to add COLORTERM in AcceptEnv/SendEnv for ssh
> if it isn't there already.
I'm grepping the patches and cannot find any snippet that decides
whether to use 24-bit escape sequences or zsh/nearcolor module. How
it's decided?
You've also written: "No true colour escapes will ever be generated if
you don't specify colours as hex triples anyway. And even if they are,
they should be ignored.".This sounds like: if true-color/near-color
was not enabled, ignore hex-triplet. But I think there is no switch
(e.g. an option) to enable true-color support?
--
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