From what I understand, I should be able to get mouse scrolling to work in emacs nox mode with the following:
(require 'mouse) (xterm-mouse-mode t) (mouse-wheel-mode t) (global-set-key (kbd "<wheel-up>") '(lambda () (interactive) (scroll-up 1))) (global-set-key (kbd "<wheel-down>") '(lambda () (interactive) (scroll-down 1)))
But for some reason I'm not getting the or signals. Instead I get this from
mintty - ESC [ M ` X 1- xterm - ESC [ M ` ] &-
mintty - ESC [ M a r -- xterm - ESC [ M a J /-
If I scroll down more than once I get this:
I'm providing examples between mintty and xterm to show that it does not appear to be limited by the terminal. It might be a Cygwin problem but I'm not sure. I AM getting escape sequences but I'm not sure how to map them. They are.. very strange.
Normally I'd used
Ctrl-v in bash for something like this but obviously it just scrolls the window.
My cursor IS moving when I use the scroll wheel with these settings so it is being detected in some form but it's doing strange things I can't quite describe, like moving up several lines then jumping down again, but this may change with the context. Might there be a problem with mouse.el?
I'm not sure what to do with this.