diff options
author | Toomas Soome <tsoome@me.com> | 2021-06-09 10:46:38 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2021-06-23 23:38:00 +0300 |
commit | fa9eb22261c7b7a35c7a6957acb3c2b26c39e15b (patch) | |
tree | cfffbe406fe7061bff152bba21559e4d1bc609f2 /usr/src/uts/common/sys/visual_io.h | |
parent | e9a9d42d6b4da41cc01b726a4d919abc09841750 (diff) | |
download | illumos-joyent-fa9eb22261c7b7a35c7a6957acb3c2b26c39e15b.tar.gz |
13876 tem: we should support CSI 38 and 48 sequences for RGB colors
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/uts/common/sys/visual_io.h')
-rw-r--r-- | usr/src/uts/common/sys/visual_io.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/visual_io.h b/usr/src/uts/common/sys/visual_io.h index 0194d00206..c894bb48bc 100644 --- a/usr/src/uts/common/sys/visual_io.h +++ b/usr/src/uts/common/sys/visual_io.h @@ -167,6 +167,7 @@ typedef union { unsigned char eight; /* eight bit */ unsigned char sixteen[2]; /* 16 bit */ unsigned char twentyfour[3]; /* 24 bit */ + unsigned char thirtytwo[4]; /* 32 bit */ } color_t; /* @@ -178,7 +179,7 @@ typedef union { * ioctl(fd, VIS_DEVINIT, struct vis_devinit *) */ #define VIS_DEVINIT (VIOC|1) -#define VIS_CONS_REV 4 /* Console IO interface version */ +#define VIS_CONS_REV 5 /* Console IO interface version */ /* Modes */ #define VIS_TEXT 0 /* Use text mode when displaying data */ #define VIS_PIXEL 1 /* Use pixel mode when displaying data */ @@ -237,7 +238,7 @@ typedef union { #define VIS_CONSCLEAR (VIOC|8) struct vis_consclear { - unsigned char bg_color; /* Background color */ + color_t bg_color; /* Background color */ }; struct vis_consdisplay { @@ -246,8 +247,8 @@ struct vis_consdisplay { screen_size_t width; /* Width of data */ screen_size_t height; /* Height of data */ unsigned char *data; /* Data to display */ - unsigned char fg_color; /* Foreground color */ - unsigned char bg_color; /* Background color */ + color_t fg_color; /* Foreground color */ + color_t bg_color; /* Background color */ }; struct vis_conscopy { |