vt: add color support to the "underline" and "italic" attributes
Add color support to the "underline" and "italic" attributes as in OpenBSD/NetBSD-style (vt220) and xterm. Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Acked-by: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1c2bbe6a11
commit
fa6ce9ab5f
@ -37,6 +37,7 @@ struct vc_data {
|
||||
unsigned char vc_color; /* Foreground & background */
|
||||
unsigned char vc_s_color; /* Saved foreground & background */
|
||||
unsigned char vc_ulcolor; /* Color for underline mode */
|
||||
unsigned char vc_itcolor;
|
||||
unsigned char vc_halfcolor; /* Color for half intensity mode */
|
||||
/* cursor */
|
||||
unsigned int vc_cursor_type;
|
||||
@ -71,10 +72,12 @@ struct vc_data {
|
||||
unsigned int vc_deccolm : 1; /* 80/132 Column Mode */
|
||||
/* attribute flags */
|
||||
unsigned int vc_intensity : 2; /* 0=half-bright, 1=normal, 2=bold */
|
||||
unsigned int vc_italic:1;
|
||||
unsigned int vc_underline : 1;
|
||||
unsigned int vc_blink : 1;
|
||||
unsigned int vc_reverse : 1;
|
||||
unsigned int vc_s_intensity : 2; /* saved rendition */
|
||||
unsigned int vc_s_italic:1;
|
||||
unsigned int vc_s_underline : 1;
|
||||
unsigned int vc_s_blink : 1;
|
||||
unsigned int vc_s_reverse : 1;
|
||||
|
Reference in New Issue
Block a user