From f1779b12349a627fced95bce5d6a2ca3b3b82f08 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Fri, 8 Mar 2019 20:40:58 +0100 Subject: [PATCH] console_codes.4: Update \e[38m and \e[48m Supported since cec5b2a97a11ade56a701e83044d0a2a984c67b4 (3.16). Signed-off-by: Adam Borowski Signed-off-by: Michael Kerrisk --- man4/console_codes.4 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/man4/console_codes.4 b/man4/console_codes.4 index d23f83526..808ff0256 100644 --- a/man4/console_codes.4 +++ b/man4/console_codes.4 @@ -271,8 +271,8 @@ T} 35 set magenta foreground 36 set cyan foreground 37 set white foreground -38 set underscore on, set default foreground color -39 set underscore off, set default foreground color +38 256/24-bit foreground color follows, shoehorned into 16 basic colors +39 set default foreground color 40 set black background 41 set red background 42 set green background @@ -281,9 +281,20 @@ T} 45 set magenta background 46 set cyan background 47 set white background +48 256/24-bit background color follows, shoehorned into 8 basic colors 49 set default background color .TE .PP +Commands 38 and 48 require further arguments: +.TS +l l. +;5;x T{ +256 color: values 0..15 are IBGR (black, red, green, ... white), +16..231 a 6x6x6 color cube, 232..255 a grayscale ramp +T} +;2;r;g;b 24-bit color, components go 0..255 +.TE +.PP .B ECMA-48 Mode Switches .TP ESC [ 3 h