aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2018-10-25 15:13:38 +0000
committernicm <nicm>2018-10-25 15:13:38 +0000
commitfc41bf46acaccb3da8d0588b7e1bbcfebc6442f6 (patch)
tree35eb7a9295fd36e29661b20a506551565ced9d16 /tmux.h
parent9feb35b7c4007966bf19cdb57b904e373da2d247 (diff)
downloadrtmux-fc41bf46acaccb3da8d0588b7e1bbcfebc6442f6.tar.gz
rtmux-fc41bf46acaccb3da8d0588b7e1bbcfebc6442f6.tar.bz2
rtmux-fc41bf46acaccb3da8d0588b7e1bbcfebc6442f6.zip
Add a "terminal" colour which can be used instead of "default" in style
options for the terminal default colour, bypassing any inheritance from other options. Prompted by a discussion with abieber@.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index f1727d23..8b41a785 100644
--- a/tmux.h
+++ b/tmux.h
@@ -543,6 +543,9 @@ enum utf8_state {
#define COLOUR_FLAG_256 0x01000000
#define COLOUR_FLAG_RGB 0x02000000
+/* Special colours. */
+#define COLOUR_DEFAULT(c) ((c) == 8 || (c) == 9)
+
/* Grid attributes. Anything above 0xff is stored in an extended cell. */
#define GRID_ATTR_BRIGHT 0x1
#define GRID_ATTR_DIM 0x2