summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-11-27 20:08:43 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-11-27 20:08:43 +0000
commit88ed505afd0558a453f6b5732c28771810cf49ef (patch)
tree5a5f103f683bcc8474b63d3e0a20e2afcc340acc /usr.bin/tmux/input.c
parente24dc0706b014da7af1e11ff3abe0ddaf4af65f6 (diff)
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.c14
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);