diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-05-14 19:03:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-05-14 19:03:09 +0000 |
commit | d91127958d2936fdae28d695d85c15d2bca0d9cf (patch) | |
tree | 880e5e9be66772eaa7e5c0dba52cafa5f4e551bd /status.c | |
parent | 4af4d124759b4648bded82482f4d043ad2b3bb79 (diff) | |
download | rtmux-d91127958d2936fdae28d695d85c15d2bca0d9cf.tar.gz rtmux-d91127958d2936fdae28d695d85c15d2bca0d9cf.tar.bz2 rtmux-d91127958d2936fdae28d695d85c15d2bca0d9cf.zip |
Colour+attribute options for status line alerts, from Alex Alexander.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -595,8 +595,17 @@ status_print( if (session_alert_has(s, wl, WINDOW_ACTIVITY) || session_alert_has(s, wl, WINDOW_BELL) || - session_alert_has(s, wl, WINDOW_CONTENT)) - gc->attr ^= GRID_ATTR_REVERSE; + session_alert_has(s, wl, WINDOW_CONTENT)) { + fg = options_get_number(oo, "window-status-alert-fg"); + if (fg != 8) + colour_set_fg(gc, fg); + bg = options_get_number(oo, "window-status-alert-bg"); + if (bg != 8) + colour_set_bg(gc, bg); + attr = options_get_number(oo, "window-status-alert-attr"); + if (attr != 0) + gc->attr = attr; + } text = status_replace(c, wl, fmt, t, 1); return (text); |