diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-01-20 19:51:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-01-20 19:51:29 +0000 |
commit | a2c81e16f9686ba2e811d127711101acaf573cba (patch) | |
tree | 338c962aa4a2b6e74fb86674b3c6c43406153405 /usr.bin/tmux/status.c | |
parent | a897309ac5c4a5974328a175110ab1b2bbfe3031 (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.c | 30 |
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; } |