diff options
author | 2009-08-05 16:26:38 +0000 | |
---|---|---|
committer | 2009-08-05 16:26:38 +0000 | |
commit | 3da0ca69ac6e4088509288fe8f961cc6fb08a49d (patch) | |
tree | 744d848fb1d2d6c5c24794368bef6be7b062651e /usr.bin/tmux/tmux.c | |
parent | Mention known signal problems and firmware version 3 only support so (diff) | |
download | wireguard-openbsd-3da0ca69ac6e4088509288fe8f961cc6fb08a49d.tar.xz wireguard-openbsd-3da0ca69ac6e4088509288fe8f961cc6fb08a49d.zip |
If colours are not supported by the terminal, try to emulate a coloured
background by setting or clearing the reverse attribute.
This makes a few applications which don't use the reverse attribute themselves
a little happier, and allows the status, message and mode options to have
default attributes and fg/bg options that work as expected when set as reverse.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 692bcf91f19..0c85a59f9be 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.26 2009/08/04 10:31:28 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.27 2009/08/05 16:26:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -345,7 +345,7 @@ main(int argc, char **argv) options_set_number(&global_s_options, "display-time", 750); options_set_number(&global_s_options, "history-limit", 2000); options_set_number(&global_s_options, "lock-after-time", 0); - options_set_number(&global_s_options, "message-attr", GRID_ATTR_REVERSE); + options_set_number(&global_s_options, "message-attr", 0); options_set_number(&global_s_options, "message-bg", 3); options_set_number(&global_s_options, "message-fg", 0); options_set_number(&global_s_options, "prefix", '\002'); @@ -353,7 +353,7 @@ main(int argc, char **argv) options_set_number(&global_s_options, "set-remain-on-exit", 0); options_set_number(&global_s_options, "set-titles", 0); options_set_number(&global_s_options, "status", 1); - options_set_number(&global_s_options, "status-attr", GRID_ATTR_REVERSE); + options_set_number(&global_s_options, "status-attr", 0); options_set_number(&global_s_options, "status-bg", 2); options_set_number(&global_s_options, "status-fg", 0); options_set_number(&global_s_options, "status-interval", 15); @@ -383,7 +383,7 @@ main(int argc, char **argv) options_set_number(&global_w_options, "force-width", 0); options_set_number(&global_w_options, "main-pane-width", 81); options_set_number(&global_w_options, "main-pane-height", 24); - options_set_number(&global_w_options, "mode-attr", GRID_ATTR_REVERSE); + options_set_number(&global_w_options, "mode-attr", 0); options_set_number(&global_w_options, "mode-bg", 3); options_set_number(&global_w_options, "mode-fg", 0); options_set_number(&global_w_options, "mode-keys", MODEKEY_EMACS); |