aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-05-12 16:16:16 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-05-12 16:16:16 +0100
commit2bff5e7867b4849019df04d77ecade300c6e3dce (patch)
treee1f2724b716ff060ba7782cb763aaf056ec9bbd3 /screen-write.c
parent90f2a417af1d6a15435571e6512d75b7ab373c58 (diff)
downloadrtmux-2bff5e7867b4849019df04d77ecade300c6e3dce.tar.gz
rtmux-2bff5e7867b4849019df04d77ecade300c6e3dce.tar.bz2
rtmux-2bff5e7867b4849019df04d77ecade300c6e3dce.zip
ECH needs to use background colour.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index ab0d1341..0a63e1b6 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -608,7 +608,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;
@@ -625,8 +625,9 @@ 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);
+ grid_view_clear(s->grid, s->cx, s->cy, nx, 1, bg);
screen_write_collect_flush(ctx, 0);
ttyctx.num = nx;