diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-05-31 19:51:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-05-31 19:51:29 +0000 |
commit | 43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4 (patch) | |
tree | 89dc06ea00452e3f6e440d6875016ee9d0910c66 /tty-keys.c | |
parent | e1e120de1c4fc5f37940ba3a6567acc914f1692c (diff) | |
download | rtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.tar.gz rtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.tar.bz2 rtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.zip |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]; |