diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-10-23 15:10:22 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-10-23 15:10:22 +0000 |
commit | 03ee7f7edf9d0d38ce2fc00b1137693fa857e8d8 (patch) | |
tree | cc841f52aa23908e7294e9f5dc98c66213933fec /input.c | |
parent | a8ca1340ad1217a6512ce21586f05102c4000cc9 (diff) |
Sync OpenBSD patchset 969:
Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |