aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-12 13:00:56 +0000
committernicm <nicm>2017-05-12 13:00:56 +0000
commit18bab3079228f5d7e85a615f57c12c16f9331568 (patch)
treec235de8b8231359effb101697b5378e46ce04e9e /tty.c
parent60f7b05c0c9fbee371dac86229d888aed7b0e7f6 (diff)
downloadrtmux-18bab3079228f5d7e85a615f57c12c16f9331568.tar.gz
rtmux-18bab3079228f5d7e85a615f57c12c16f9331568.tar.bz2
rtmux-18bab3079228f5d7e85a615f57c12c16f9331568.zip
Scrolling needs to use background colour.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 00460574..a16fa474 100644
--- a/tty.c
+++ b/tty.c
@@ -1141,18 +1141,20 @@ tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx)
void
tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx)
{
+ struct window_pane *wp = ctx->wp;
+
if (ctx->ocy != ctx->orupper)
return;
if (!tty_pane_full_width(tty, ctx) ||
- tty_fake_bce(tty, ctx->wp, 8) ||
+ tty_fake_bce(tty, wp, 8) ||
!tty_term_has(tty->term, TTYC_CSR) ||
!tty_term_has(tty->term, TTYC_RI)) {
tty_redraw_region(tty, ctx);
return;
}
- tty_attributes(tty, &grid_default_cell, ctx->wp);
+ tty_default_attributes(tty, wp, ctx->bg);
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
tty_margin_off(tty);
@@ -1176,7 +1178,7 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
return;
}
- tty_attributes(tty, &grid_default_cell, wp);
+ tty_default_attributes(tty, wp, ctx->bg);
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
tty_margin_pane(tty, ctx);
@@ -1207,7 +1209,7 @@ tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
return;
}
- tty_attributes(tty, &grid_default_cell, wp);
+ tty_default_attributes(tty, wp, ctx->bg);
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
tty_margin_pane(tty, ctx);