Use reverse so status line etc works in terminals w/o colour.

This commit is contained in:
Nicholas Marriott
2009-01-23 20:49:01 +00:00
parent d2cfbc64a0
commit 6146cab3bd
5 changed files with 35 additions and 30 deletions

View File

@ -1,4 +1,4 @@
/* $Id: window-scroll.c,v 1.27 2009-01-11 23:31:46 nicm Exp $ */
/* $Id: window-scroll.c,v 1.28 2009-01-23 20:49:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -158,8 +158,9 @@ window_scroll_write_line(
memcpy(&gc, &grid_default_cell, sizeof gc);
size = xsnprintf(hdr, sizeof hdr,
"[%u,%u/%u]", data->ox, data->oy, screen_hsize(&wp->base));
gc.fg = options_get_number(&wp->window->options, "mode-fg");
gc.bg = options_get_number(&wp->window->options, "mode-bg");
gc.bg = options_get_number(&wp->window->options, "mode-fg");
gc.fg = options_get_number(&wp->window->options, "mode-bg");
gc.attr |= GRID_ATTR_REVERSE;
screen_write_cursormove(ctx, screen_size_x(s) - size, 0);
screen_write_puts(ctx, &gc, "%s", hdr);
memcpy(&gc, &grid_default_cell, sizeof gc);