diff options
author | 2012-11-27 20:08:42 +0000 | |
---|---|---|
committer | 2012-11-27 20:08:42 +0000 | |
commit | 544e828aeff3cace9ba7a627533e59c42d6a37fc (patch) | |
tree | 4b6cc39905cd83934cfee13032de4b3542fe707a /usr.bin/tmux/input.c | |
parent | - add 'make-directory' (not bound to any shortcut). (diff) | |
download | wireguard-openbsd-544e828aeff3cace9ba7a627533e59c42d6a37fc.tar.xz wireguard-openbsd-544e828aeff3cace9ba7a627533e59c42d6a37fc.zip |
Support the 47 and 1047 SM and RM sequences (alternate screen without
cursor), requested by I forget who ages ago.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index f44e2d45fe3..18ca0cd7ffe 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.54 2012/09/25 07:41:22 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.55 2012/11/27 20:08:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1255,8 +1255,12 @@ input_csi_dispatch(struct input_ctx *ictx) case 1005: screen_write_utf8mousemode(&ictx->ctx, 0); break; + case 47: + case 1047: + window_pane_alternate_off(wp, &ictx->cell, 0); + break; case 1049: - window_pane_alternate_off(wp, &ictx->cell); + window_pane_alternate_off(wp, &ictx->cell, 1); break; case 2004: screen_write_bracketpaste(&ictx->ctx, 0); @@ -1310,8 +1314,12 @@ input_csi_dispatch(struct input_ctx *ictx) case 1005: screen_write_utf8mousemode(&ictx->ctx, 1); break; + case 47: + case 1047: + window_pane_alternate_on(wp, &ictx->cell, 0); + break; case 1049: - window_pane_alternate_on(wp, &ictx->cell); + window_pane_alternate_on(wp, &ictx->cell, 1); break; case 2004: screen_write_bracketpaste(&ictx->ctx, 1); |