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-copy.c,v 1.42 2009-01-21 18:19:32 nicm Exp $ */
/* $Id: window-copy.c,v 1.43 2009-01-23 20:49:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -215,8 +215,9 @@ window_copy_write_line(struct window_pane *wp, struct screen_write_ctx *ctx, u_i
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);
screen_write_puts(ctx, &gc, "%s", hdr);