[PATCH 2/3] console_codes.4: \e[38m and \e[48m

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Supported since cec5b2a9 (3.16).

Signed-off-by: Adam Borowski <kilobyte@xxxxxxxxxx>
---
 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 d605b058d..4283efe45 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
-- 
2.20.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux