zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: explicitly document need for # in colour hex triplets
       [not found] <13303-1576415832.545696.ref@VG4M.ZpcM.KQAL>
@ 2019-12-15 13:17 ` Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2019-12-15 13:17 UTC (permalink / raw)
  To: Zsh workers

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))\
 ).
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-15 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <13303-1576415832.545696.ref@VG4M.ZpcM.KQAL>
2019-12-15 13:17 ` PATCH: explicitly document need for # in colour hex triplets Oliver Kiddle

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).