From fc41bf46acaccb3da8d0588b7e1bbcfebc6442f6 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 25 Oct 2018 15:13:38 +0000 Subject: 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@. --- tmux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmux.h') 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 -- cgit