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:
Tiago Cunha
2011-10-23 15:10:22 +00:00
parent a8ca1340ad
commit 03ee7f7edf
5 changed files with 26 additions and 0 deletions

11
input.c
View File

@ -1126,6 +1126,17 @@ input_csi_dispatch(struct input_ctx *ictx)
case 2:
screen_write_clearscreen(sctx);
break;
case 3:
switch (input_get(ictx, 1, 0, 0)) {
case 0:
/*
* Linux console extension to clear history
* (for example before locking the screen).
*/
screen_write_clearhistory(sctx);
break;
}
break;
default:
log_debug("%s: unknown '%c'", __func__, ictx->ch);
break;