diff options
author | 2018-10-25 15:13:38 +0000 | |
---|---|---|
committer | 2018-10-25 15:13:38 +0000 | |
commit | d78fd057ebd9961f54839e3496716dbe8796358d (patch) | |
tree | bd5e0aecf4833c8f5b77b8915bfde78d0416d03c /usr.bin/tmux/tmux.h | |
parent | tweak description to conform to reality. (diff) | |
download | wireguard-openbsd-d78fd057ebd9961f54839e3496716dbe8796358d.tar.xz wireguard-openbsd-d78fd057ebd9961f54839e3496716dbe8796358d.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 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 85eb4b4ccf8..49a0258b67e 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.849 2018/10/18 08:38:01 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.850 2018/10/25 15:13:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 |