version 1.75, 2020/05/16 15:01:31 |
version 1.76, 2020/05/16 15:34:08 |
|
|
screen_init(&wp->status_screen, width, 1, 0); |
screen_init(&wp->status_screen, width, 1, 0); |
wp->status_screen.mode = 0; |
wp->status_screen.mode = 0; |
|
|
screen_write_start(&ctx, NULL, &wp->status_screen); |
screen_write_start(&ctx, &wp->status_screen); |
|
|
gc.attr |= GRID_ATTR_CHARSET; |
gc.attr |= GRID_ATTR_CHARSET; |
for (i = 0; i < width; i++) |
for (i = 0; i < width; i++) |
|
|
|
|
if (ctx->statustop) |
if (ctx->statustop) |
yoff += ctx->statuslines; |
yoff += ctx->statuslines; |
tty_draw_line(tty, NULL, s, i, 0, width, x, yoff - ctx->oy); |
tty_draw_line(tty, s, i, 0, width, x, yoff - ctx->oy, |
|
&grid_default_cell, NULL); |
} |
} |
tty_cursor(tty, 0, 0); |
tty_cursor(tty, 0, 0); |
} |
} |
|
|
} |
} |
} |
} |
|
|
tty_attributes(tty, gc, NULL); |
tty_attributes(tty, gc, &grid_default_cell, NULL); |
if (ctx->statustop) |
if (ctx->statustop) |
tty_cursor(tty, i, ctx->statuslines + j); |
tty_cursor(tty, i, ctx->statuslines + j); |
else |
else |
|
|
y = 0; |
y = 0; |
else |
else |
y = c->tty.sy - ctx->statuslines; |
y = c->tty.sy - ctx->statuslines; |
for (i = 0; i < ctx->statuslines; i++) |
for (i = 0; i < ctx->statuslines; i++) { |
tty_draw_line(tty, NULL, s, 0, i, UINT_MAX, 0, y + i); |
tty_draw_line(tty, s, 0, i, UINT_MAX, 0, y + i, |
|
&grid_default_cell, NULL); |
|
} |
} |
} |
|
|
/* Draw one pane. */ |
/* Draw one pane. */ |
|
|
struct window *w = c->session->curw->window; |
struct window *w = c->session->curw->window; |
struct tty *tty = &c->tty; |
struct tty *tty = &c->tty; |
struct screen *s; |
struct screen *s; |
|
struct grid_cell defaults; |
u_int i, j, top, x, y, width; |
u_int i, j, top, x, y, width; |
|
|
log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id); |
log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id); |
|
|
log_debug("%s: %s %%%u line %u,%u at %u,%u, width %u", |
log_debug("%s: %s %%%u line %u,%u at %u,%u, width %u", |
__func__, c->name, wp->id, i, j, x, y, width); |
__func__, c->name, wp->id, i, j, x, y, width); |
|
|
tty_draw_line(tty, wp, s, i, j, width, x, y); |
tty_default_colours(&defaults, wp); |
|
tty_draw_line(tty, s, i, j, width, x, y, &defaults, |
|
wp->palette); |
} |
} |
} |
} |