From 43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 31 May 2010 19:51:29 +0000 Subject: When the mode-mouse option is on, support dragging to make a selection in copy mode. Also support the scroll wheel, although xterm strangely does not ignore it in application mouse mode, causing redraw artifacts when scrolling up (other terminals appear to be better behaved). --- tty-keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tty-keys.c') diff --git a/tty-keys.c b/tty-keys.c index 27107bb8..59002fb2 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -612,7 +612,8 @@ tty_keys_mouse(const char *buf, size_t len, size_t *size, struct mouse_event *m) return (1); *size = 6; - log_debug("mouse input is: %.6s", buf); + log_debug( + "mouse input: %.6s (%hhu,%hhu/%hhu)", buf, buf[4], buf[5], buf[3]); m->b = buf[3]; m->x = buf[4]; -- cgit