version 1.281, 2017/05/12 23:10:19 |
version 1.282, 2017/05/13 07:30:50 |
|
|
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) |
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
u_int nx, py = ctx->yoff + ctx->ocy; |
u_int py = ctx->yoff + ctx->ocy; |
|
|
tty_default_attributes(tty, wp, ctx->bg); |
tty_default_attributes(tty, wp, ctx->bg); |
|
|
nx = screen_size_x(wp->screen) - ctx->ocx; |
|
tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg); |
tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg); |
} |
} |
|
|