diff options
author | 2013-03-22 10:33:50 +0000 | |
---|---|---|
committer | 2013-03-22 10:33:50 +0000 | |
commit | 6c0777c525839bed1243f354e5ffc93c7045101c (patch) | |
tree | b22b51e7ff2042cf3ec6c74e352dd4a33787db61 /usr.bin/tmux/input.c | |
parent | Add client_session and client_last_session formats. (diff) | |
download | wireguard-openbsd-6c0777c525839bed1243f354e5ffc93c7045101c.tar.xz wireguard-openbsd-6c0777c525839bed1243f354e5ffc93c7045101c.zip |
Support the latest theory for mouse input, this is enabled/disabled with
SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or
\033[b;x;ym. From Egmont Koblinger.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index c35e86a73ae..2f27a0e7d54 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.59 2013/03/21 18:47:56 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.60 2013/03/22 10:33:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1260,6 +1260,9 @@ input_csi_dispatch(struct input_ctx *ictx) case 1005: screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_UTF8); break; + case 1006: + screen_write_mode_clear(&ictx->ctx, MODE_MOUSE_SGR); + break; case 47: case 1047: window_pane_alternate_off(wp, &ictx->cell, 0); @@ -1320,6 +1323,9 @@ input_csi_dispatch(struct input_ctx *ictx) case 1005: screen_write_mode_set(&ictx->ctx, MODE_MOUSE_UTF8); break; + case 1006: + screen_write_mode_set(&ictx->ctx, MODE_MOUSE_SGR); + break; case 47: case 1047: window_pane_alternate_on(wp, &ictx->cell, 0); |