diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-01-29 12:01:16 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-01-29 12:01:16 +0000 |
commit | 8cf1504ba67307ee885c19c12d63a6a22016a582 (patch) | |
tree | 168042ba3854675033e003e06452cc58869c8eb1 /tmux.h | |
parent | 1d6bd50343f4395879169868e47bb59f5b2f3811 (diff) | |
parent | 427b8204268af5548d09b830e101c59daa095df9 (diff) | |
download | rtmux-8cf1504ba67307ee885c19c12d63a6a22016a582.tar.gz rtmux-8cf1504ba67307ee885c19c12d63a6a22016a582.tar.bz2 rtmux-8cf1504ba67307ee885c19c12d63a6a22016a582.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -387,6 +387,7 @@ enum tty_code_code { TTYC_SMSO, /* enter_standout_mode, so */ TTYC_SMUL, /* enter_underline_mode, us */ TTYC_SS, /* set cursor style, Ss */ + TTYC_TC, /* 24-bit "true" colour, Tc */ TTYC_TSL, /* to_status_line, tsl */ TTYC_VPA, /* row_address, cv */ TTYC_XENL, /* eat_newline_glitch, xn */ @@ -643,16 +644,31 @@ enum utf8_state { #define GRID_FLAG_BG256 0x2 #define GRID_FLAG_PADDING 0x4 #define GRID_FLAG_EXTENDED 0x8 +#define GRID_FLAG_FGRGB 0x10 +#define GRID_FLAG_BGRGB 0x20 /* Grid line flags. */ #define GRID_LINE_WRAPPED 0x1 +/* Grid cell RGB colours. */ +struct grid_cell_rgb { + u_char r; + u_char g; + u_char b; +}; + /* Grid cell data. */ struct grid_cell { u_char flags; u_char attr; - u_char fg; - u_char bg; + union { + u_char fg; + struct grid_cell_rgb fg_rgb; + }; + union { + u_char bg; + struct grid_cell_rgb bg_rgb; + }; struct utf8_data data; }; |