diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-12 12:37:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-12 12:37:48 +0000 |
commit | e5b70015246c634a53747a149e5e7f8cc04a9f85 (patch) | |
tree | 1f2240b3ffbb1c8e9cf5be4a1f506c796d742838 /status.c | |
parent | a02638c0bc38c0d1e87bdf6d8893297c0f4f800e (diff) |
Change to show flag char rather than change colour on bell.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.5 2007-10-12 12:08:51 nicm Exp $ */ +/* $Id: status.c,v 1.6 2007-10-12 12:37:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -32,6 +32,7 @@ status_write(struct client *c) struct window *w; size_t size; u_int i; + char flag; input_store_zero(b, CODE_CURSOROFF); input_store_two(b, CODE_CURSORMOVE, c->sy - status_lines + 1, 1); @@ -43,15 +44,14 @@ status_write(struct client *c) if (w == NULL) continue; - if (session_hasbell(c->session, w)) { - input_store_two( - b, CODE_ATTRIBUTES, ATTR_REVERSE, status_colour); - } - status_print(b, &size, - "%u:%s%s", i, w->name, w == c->session->window ? "*" : ""); + flag = ' '; + if (w == c->session->last) + flag = '-'; + if (w == c->session->window) + flag = '*'; if (session_hasbell(c->session, w)) - input_store_two(b, CODE_ATTRIBUTES, 0, status_colour); - status_print(b, &size, " "); + flag = '!'; + status_print(b, &size, "%u:%s%c ", i, w->name, flag); if (size == 0) break; |