summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-06-27 15:17:41 +0000
committernicm <nicm>2019-06-27 15:17:41 +0000
commitdae2868d1227b95fd076fb4a5efa6256c7245943 (patch)
treee9c0285c193c9e3463b4e3d45cfd71a7668aedfa /tmux.h
parent3a6d90adadfcd4aa6b513df7f8ae5c4dcc05a6dc (diff)
Add support for underscore colours with Setulc capability, mostly from
Kai Moschcau.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index ba257ea8..7126b30f 100644
--- a/tmux.h
+++ b/tmux.h
@@ -427,6 +427,7 @@ enum tty_code_code {
TTYC_SETAF,
TTYC_SETRGBB,
TTYC_SETRGBF,
+ TTYC_SETULC,
TTYC_SGR0,
TTYC_SITM,
TTYC_SMACS,
@@ -599,6 +600,7 @@ struct grid_cell {
u_short attr;
int fg;
int bg;
+ int us;
struct utf8_data data;
};
struct grid_cell_entry {
@@ -2194,7 +2196,8 @@ int colour_join_rgb(u_char, u_char, u_char);
void colour_split_rgb(int, u_char *, u_char *, u_char *);
const char *colour_tostring(int);
int colour_fromstring(const char *s);
-u_char colour_256to16(u_char);
+int colour_256toRGB(int);
+int colour_256to16(int);
/* attributes.c */
const char *attributes_tostring(int);