summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-01-20 19:51:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-01-20 19:51:29 +0000
commita2c81e16f9686ba2e811d127711101acaf573cba (patch)
tree338c962aa4a2b6e74fb86674b3c6c43406153405 /usr.bin/tmux/status.c
parenta897309ac5c4a5974328a175110ab1b2bbfe3031 (diff)
Add some trivial additional status line attributes from jwcxz at users
dot sourceforge dot net.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r--usr.bin/tmux/status.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 9437241b70f..6bb6948a890 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.83 2012/01/20 19:10:29 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.84 2012/01/20 19:51:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -684,14 +684,34 @@ status_print(
fmt = options_get_string(oo, "window-status-current-format");
}
- if (wl->flags & WINLINK_ALERTFLAGS) {
- fg = options_get_number(oo, "window-status-alert-fg");
+ if (wl->flags & WINLINK_BELL) {
+ fg = options_get_number(oo, "window-status-bell-fg");
if (fg != 8)
colour_set_fg(gc, fg);
- bg = options_get_number(oo, "window-status-alert-bg");
+ bg = options_get_number(oo, "window-status-bell-bg");
if (bg != 8)
colour_set_bg(gc, bg);
- attr = options_get_number(oo, "window-status-alert-attr");
+ attr = options_get_number(oo, "window-status-bell-attr");
+ if (attr != 0)
+ gc->attr = attr;
+ } else if (wl->flags & WINLINK_CONTENT) {
+ fg = options_get_number(oo, "window-status-content-fg");
+ if (fg != 8)
+ colour_set_fg(gc, fg);
+ bg = options_get_number(oo, "window-status-content-bg");
+ if (bg != 8)
+ colour_set_bg(gc, bg);
+ attr = options_get_number(oo, "window-status-content-attr");
+ if (attr != 0)
+ gc->attr = attr;
+ } else if (wl->flags & (WINLINK_ACTIVITY|WINLINK_SILENCE)) {
+ fg = options_get_number(oo, "window-status-activity-fg");
+ if (fg != 8)
+ colour_set_fg(gc, fg);
+ bg = options_get_number(oo, "window-status-activity-bg");
+ if (bg != 8)
+ colour_set_bg(gc, bg);
+ attr = options_get_number(oo, "window-status-activity-attr");
if (attr != 0)
gc->attr = attr;
}