summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-12 11:24:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-12 11:24:15 +0000
commitad4a7423c039513bd55d336c9335013d5328811b (patch)
treee820af0c5cc36dc28b57a7b20b6007abd24a4bea /status.c
parentd1589381782732386e07709956f4d6c7ed029d7b (diff)
Mark windows in yellow on status line when bell.
Diffstat (limited to 'status.c')
-rw-r--r--status.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/status.c b/status.c
index 18803479..ee15d4b8 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.3 2007-10-04 19:03:52 nicm Exp $ */
+/* $Id: status.c,v 1.4 2007-10-12 11:24:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -42,8 +42,13 @@ status_write(struct client *c)
w = ARRAY_ITEM(&c->session->windows, i);
if (w == NULL)
continue;
+ if (session_hasbell(c->session, w))
+ input_store_two(b, CODE_ATTRIBUTES, ATTR_REVERSE, 0x30);
status_print(b, &size,
- "%u:%s%s ", i, w->name, w == c->session->window ? "*" : "");
+ "%u:%s%s", i, w->name, w == c->session->window ? "*" : "");
+ if (session_hasbell(c->session, w))
+ input_store_two(b, CODE_ATTRIBUTES, ATTR_REVERSE, 0x20);
+ status_print(b, &size, " ");
if (size == 0)
break;
}