diff options
author | 2017-05-12 10:50:11 +0000 | |
---|---|---|
committer | 2017-05-12 10:50:11 +0000 | |
commit | cf8e7221d6b58e0ed89c151715575da87d707bb7 (patch) | |
tree | 3a0d0080ac31b5229403ca18eadadad259e7c6af /usr.bin/tmux/screen-write.c | |
parent | Can use DECFRA to clear area when not using default background. (diff) | |
download | wireguard-openbsd-cf8e7221d6b58e0ed89c151715575da87d707bb7.tar.xz wireguard-openbsd-cf8e7221d6b58e0ed89c151715575da87d707bb7.zip |
ECH needs to use background colour.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 1444a4a7fed..d7bfd512378 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.120 2017/05/11 11:39:30 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.121 2017/05/12 10:50:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -606,7 +606,7 @@ screen_write_deletecharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg) /* Clear nx characters. */ void -screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx) +screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg) { struct screen *s = ctx->s; struct tty_ctx ttyctx; @@ -623,6 +623,7 @@ screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx) return; screen_write_initctx(ctx, &ttyctx); + ttyctx.bg = bg; grid_view_clear(s->grid, s->cx, s->cy, nx, 1, 8); |