mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-13 23:38:52 +02:00
Sync OpenBSD patchset 969:
Support for \e[3J to clear the history. Also send the corresponding terminfo code (E3) before locking.
This commit is contained in:
@ -985,6 +985,17 @@ screen_write_clearscreen(struct screen_write_ctx *ctx)
|
||||
tty_write(tty_cmd_clearscreen, &ttyctx);
|
||||
}
|
||||
|
||||
/* Clear entire history. */
|
||||
void
|
||||
screen_write_clearhistory(struct screen_write_ctx *ctx)
|
||||
{
|
||||
struct screen *s = ctx->s;
|
||||
struct grid *gd = s->grid;
|
||||
|
||||
grid_move_lines(gd, 0, gd->hsize, gd->sy);
|
||||
gd->hsize = 0;
|
||||
}
|
||||
|
||||
/* Write cell data. */
|
||||
void
|
||||
screen_write_cell(struct screen_write_ctx *ctx,
|
||||
|
Reference in New Issue
Block a user