From c8ce1fe4c1e37e3db402570e7ced2aa413323792 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 5 Nov 2018 22:24:16 +0100 Subject: 43760: add documentation for true colour changes and nearcolor module --- Doc/Zsh/zle.yo | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/zle.yo') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 895c5c570..fe4e5bd04 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2703,8 +2703,9 @@ this to appear with other types of highlighting; it is used to override a default. ) item(tt(fg=)var(colour))( -The foreground colour should be set to var(colour), a decimal integer -or the name of one of the eight most widely-supported colours. +The foreground colour should be set to var(colour), a decimal integer, +the name of one of the eight most widely-supported colours or as a +`tt(#)' followed by an RGB triplet in hexadecimal format. Not all terminals support this and, of those that do, not all provide facilities to test the support, hence the user should decide based on the @@ -2721,6 +2722,15 @@ Co)'; if this succeeds, it indicates a limit on the number of colours which will be enforced by the line editor. The number of colours is in any case 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))\ +ifnzman(noderef(The zsh/nearcolor Module))\ +). + Colour is also known as color. ) item(tt(bg=)var(colour))( -- cgit 1.4.1