diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 20:27:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 20:27:28 +0000 |
commit | 51a295701bf9ca17f8a3cd775c44bbfe0e5cd47d (patch) | |
tree | 083497139433d3a51a8be3b0dc25edd6e4ebc5e3 /usr.bin/tmux/window.c | |
parent | 7e9e193b8c56adb494d54a6241843a990c3425f2 (diff) |
Add support for BCE (background colour erase). This makes various escape
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank
cells using the current background colour rather than the default
colour.
On modern systems BCE doesn't really have many benefits, but most other
terminals now support it, some (lazy) applications rely on it, and it is
not hard to include now that we have pane background colours anyway.
Mostly written by Sean Haugh.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 74b36a33f9a..3dcbdf9ca87 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.169 2016/10/11 13:21:59 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.170 2016/10/13 20:27:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1023,7 +1023,7 @@ window_pane_alternate_on(struct window_pane *wp, struct grid_cell *gc, } memcpy(&wp->saved_cell, gc, sizeof wp->saved_cell); - grid_view_clear(s->grid, 0, 0, sx, sy); + grid_view_clear(s->grid, 0, 0, sx, sy, 8); wp->base.grid->flags &= ~GRID_HISTORY; |