diff options
author | 2011-10-23 10:16:14 +0000 | |
---|---|---|
committer | 2011-10-23 10:16:14 +0000 | |
commit | 786c44dced1aee01244b69cbacea2961ce4ef3aa (patch) | |
tree | d78813b73bff2c86bf3c6043a037566772812416 /usr.bin/tmux/input.c | |
parent | fsqueue no longer stores envelopes by dumping the structure, instead use a (diff) | |
download | wireguard-openbsd-786c44dced1aee01244b69cbacea2961ce4ef3aa.tar.xz wireguard-openbsd-786c44dced1aee01244b69cbacea2961ce4ef3aa.zip |
Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index df0af355bcf..391c654344b 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.40 2011/07/08 06:28:05 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.41 2011/10/23 10:16:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |