aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-19 19:01:11 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-19 19:01:11 +0000
commit94471aab827d152375514a8bf69ac2f751e3ca67 (patch)
tree4147ecfa671f43e05695c8355f77f2a4c65fdee0 /status.c
parent5e55b28d81062f80a785488836bb149e7fedb409 (diff)
downloadrtmux-94471aab827d152375514a8bf69ac2f751e3ca67.tar.gz
rtmux-94471aab827d152375514a8bf69ac2f751e3ca67.tar.bz2
rtmux-94471aab827d152375514a8bf69ac2f751e3ca67.zip
Use reverse rather than background which doesn't show up when terminal doesn't
support colours.
Diffstat (limited to 'status.c')
-rw-r--r--status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/status.c b/status.c
index 9fed1409..a7d0d58f 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.64 2009-01-17 18:47:37 nicm Exp $ */
+/* $Id: status.c,v 1.65 2009-01-19 19:01:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -498,8 +498,8 @@ status_prompt_redraw(struct client *c)
ch = c->prompt_buffer[c->prompt_index];
if (ch == '\0')
ch = ' ';
- gc.bg = gc.fg;
- gc.fg = options_get_number(&s->options, "message-bg");
+ gc.bg = options_get_number(&s->options, "message-bg");
+ gc.attr |= GRID_ATTR_REVERSE;
screen_write_putc(&ctx, &gc, ch);
screen_write_stop(&ctx);