aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-12 10:50:11 +0000
committernicm <nicm>2017-05-12 10:50:11 +0000
commit886d50dcabf98d7469d982241336593acbb2e6f6 (patch)
tree5a03311e10f2da40dfef09dce12fd6b02705b5b1 /screen-write.c
parent7d3e2c83d4487c306fc77f22c2cc12f5842bd5ae (diff)
downloadrtmux-886d50dcabf98d7469d982241336593acbb2e6f6.tar.gz
rtmux-886d50dcabf98d7469d982241336593acbb2e6f6.tar.bz2
rtmux-886d50dcabf98d7469d982241336593acbb2e6f6.zip
ECH needs to use background colour.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 6631ab56..7dace38a 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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);