From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, 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 0167a93d for ; Sun, 15 Dec 2019 21:06:48 +0000 (UTC) Received: (qmail 18495 invoked by alias); 15 Dec 2019 13:18:14 -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: 45035 Received: (qmail 1034 invoked by uid 1010); 15 Dec 2019 13:18:14 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25656. spamassassin: 3.4.2. Clear:RC:0(205.235.26.22):SA:0(-1.6/5.0):. Processed in 1.744452 secs); 15 Dec 2019 13:18:14 -0000 X-Envelope-From: SRS0=jXJj=2F=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at bounces.park01.gkg.net designates 205.235.26.22 as permitted sender) X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 X-YMail-OSG: 7GRFTboVM1k0ru.0Ui9Gp3YLCXyBS5I5qSm_3oMQTlaDNtb53GQR1jSBV7aoFII _QjddrsM_fJGFLCxjixMOrY7h2D3XKKb5gsKlDb8yXnxRVv7SMEMWZoQ83_OQKz7HUC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WdYbhj H0oKP6LasVF21HyM5qzxPvhww1Rn8R_YlR2ShJB4eNWPxXrR_kJxEZMtoOFmZ.14gO1W_RGvWDuS jVgtqDXl9cyExsHZfBmY2A_DCBe1x2dsuHPtSQjtIcIUU_guMFbDxm3lIi1UlTNJAwbG1RsZA4o_ ErXX6nt5nPILyP.j3wFYvqxTN9wW3FU7LGkKWbbvSYSQYevMN787eRX0grkJRVutosVjDsmX9Rvg - From: Oliver Kiddle To: Zsh workers Subject: PATCH: explicitly document need for # in colour hex triplets MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13302.1576415832.1@hydra> Date: Sun, 15 Dec 2019 14:17:12 +0100 Message-ID: <13303-1576415832.545696@VG4M.ZpcM.KQAL> References: <13303-1576415832.545696.ref@VG4M.ZpcM.KQAL> X-Mailer: WebService/1.1.14728 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) Based on a user question on an external forum, we should explicitly spell out the need for the # character when specifying colours as hex triplets. It is already explicit a couple of paragraphs before this but in the context of zle_highlight rather than prompts. Note that it is necessary for us to require the # because 3 digit colour numbers already refer to colours in the 256 colour palette. With 6 digits we might allow it to be omitted but I don't think it'd be a good idea. Oliver diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 0986e5390..c928b8ca2 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2729,10 +2729,10 @@ limited to 256 (i.e. the range 0 to 255). Some modern terminal emulators have support for 24-bit true colour (16 million colours). In this case, the hex triplet format can be used. This -consists of either a three or six digit hexadecimal number describing -the red, green and blue components of the colour. Hex triplets can also -be used with 88 and 256 colour terminals via the tt(zsh/nearcolor) -module (see ifzman(zmanref(zshmodules))\ +consists of a `tt(#)' followed by either a three or six digit hexadecimal +number describing the red, green and blue components of the colour. Hex +triplets can also be used with 88 and 256 colour terminals via the +tt(zsh/nearcolor) module (see ifzman(zmanref(zshmodules))\ ifnzman(noderef(The zsh/nearcolor Module))\ ).