diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-27 15:17:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-27 15:17:42 +0000 |
commit | 177496c71ff81f14d51f1a5f0f3df1f1c09a24c5 (patch) | |
tree | 742aa31970ba0a0d0fecc596623d3d2569b608d0 /usr.bin/tmux/tmux.h | |
parent | bdc1ed3a36fcefe6cbddbf4592642b2468653540 (diff) |
Add support for underscore colours with Setulc capability, mostly from
Kai Moschcau.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 67042f6a660..8a37fb4ce93 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.915 2019/06/26 13:03:47 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.916 2019/06/27 15:17:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |