From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43769-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5380ed19 for ; Tue, 6 Nov 2018 12:13:09 +0000 (UTC) Received: (qmail 21672 invoked by alias); 6 Nov 2018 12:12:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43769 Received: (qmail 13339 invoked by uid 1010); 6 Nov 2018 12:12:52 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f50.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.210.50):SA:0(-2.0/5.0):. Processed in 2.066491 secs); 06 Nov 2018 12:12:52 -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 :cc; bh=ivXcZq272cPZkEhy8xWzTw1ja3f39yM9v4caxwboark=; b=b42JakBvA8tAS3vs6NszYvpYDeZMreLmIvRH7rMJkbrqpO8qpDrF45OdvaUA3buN61 2k1fkXsSmqdJUYT9+RosqfQ/1VZ56EO/9CbuqZryhc9VbkknegyGUs5l7UeHNW2QMETD Hf+m0stfvh5QdX4dH4knZ/nlIV4thQr/DyTV7KfT7IHAS7oZOwJ4UIPWOhuXaA/PWTHp 3KsentLWz3s+oABT6B37C1x8ky/byJiyiCfNAf+/IPo2aKmotPeqhiUyI5Lbik/OQenE r5TaXsfraYBO6mwuhosCIKWGd5ShGmQASUd61QnVI1iIPriIVpAqcz57Jy8g3n2grI17 9Nxg== 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:cc; bh=ivXcZq272cPZkEhy8xWzTw1ja3f39yM9v4caxwboark=; b=M2YHsnaFITC3FBEY4r0paFQeUoT8M/4xNsjAFAPVcZLG1J6Z+wc51xWMZzWa7RCe0y PllXY4VpTYIACh9CANGhIkreyKDDZ6ZtEWCdZ33Xd1MK/f6IExzmSIRvFo3rx4cvJlRa mSwDiM8gV+RNgZ5blE5USbEumrK9TvDFa7jBkxM2oO6t9dCYh5MBjJm5BFhyxt3beNfu 2iKyDM96hYa/Rv4rq5sZzmylKcQHuHTKehR9tm2tDl2XUiaWcMU3jimsQQuT9y4Vpg6y WIW+fF4Ygrx5m42U+JULiO5aeYfxryJD4Jz+5m/g8nzYZwAKeyfJZQDtQDmclDXlMytZ r3UA== X-Gm-Message-State: AGRZ1gJC5Gdwv8JxZKaKRLqms7Egdd6LcNtZo3RyOfE310BPcE68RK2R 9dzVlxDmHiEZEF3WYoe1PnjM5l2Z72QB1Zmn52I= X-Google-Smtp-Source: AJdET5dlDxrJbDjIyN6cxceE6bJ4kWiDus8PvfoNqmyTOwX1/a9LCaaQDCLuRUU0SkjvpwbA42PUH9NOtq6ahlREjWU= X-Received: by 2002:a9d:2f23:: with SMTP id h32mr14706040otb.268.1541506367627; Tue, 06 Nov 2018 04:12:47 -0800 (PST) MIME-Version: 1.0 References: <58111-1540942908.680582@SXAw.BXd_.-x5N> <14759-1541295720.747208@yAOj.Gon2.-2mF> In-Reply-To: <14759-1541295720.747208@yAOj.Gon2.-2mF> From: Sebastian Gniazdowski Date: Tue, 6 Nov 2018 13:12:34 +0100 Message-ID: Subject: Re: PATCH: true colour support To: Oliver Kiddle Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Sun, 4 Nov 2018 at 02:42, Oliver Kiddle 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