summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-05-31 19:51:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-05-31 19:51:29 +0000
commit43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4 (patch)
tree89dc06ea00452e3f6e440d6875016ee9d0910c66 /tty-keys.c
parente1e120de1c4fc5f37940ba3a6567acc914f1692c (diff)
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).
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c3
1 files changed, 2 insertions, 1 deletions
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];