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-copy.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-copy.c')
-rw-r--r-- | usr.bin/tmux/window-copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 9212f0bc471..9fe8452500b 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.158 2016/10/12 09:07:58 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.159 2016/10/13 20:27:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2052,7 +2052,7 @@ window_copy_scroll_up(struct window_pane *wp, u_int ny) screen_write_start(&ctx, wp, NULL); screen_write_cursormove(&ctx, 0, 0); - screen_write_deleteline(&ctx, ny); + screen_write_deleteline(&ctx, ny, 8); window_copy_write_lines(wp, &ctx, screen_size_y(s) - ny, ny); window_copy_write_line(wp, &ctx, 0); if (screen_size_y(s) > 1) @@ -2085,7 +2085,7 @@ window_copy_scroll_down(struct window_pane *wp, u_int ny) screen_write_start(&ctx, wp, NULL); screen_write_cursormove(&ctx, 0, 0); - screen_write_insertline(&ctx, ny); + screen_write_insertline(&ctx, ny, 8); window_copy_write_lines(wp, &ctx, 0, ny); if (s->sel.flag && screen_size_y(s) > ny) window_copy_write_line(wp, &ctx, ny); |