On Fri, Nov 29, 2013 at 11:10:11AM -0600, David Champion wrote: > * On 29 Nov 2013, Martin Vegter wrote: > > On 2013-11-29 12:40, LEVAI Daniel wrote: > > >On p, nov 29, 2013 at 12:24:33 +0100, Martin Vegter wrote: > > >>when in run mutt in terminal emulator, it reacts to the scroll wheel of my > > >>mouse. Is it possible to disable mouse entirely? There is no mention of > > >>the > > >>word "mouse" in man mutt. > > > > > >Well, not sure if this is Mutt specific, but terminal emulator specific. > > >If you're on a tty, perhaps gpm is running? If you're on a pseudo > > >terminal, just disable the mouse input in your terminal emulator (xterm, > > >urxvt etc... see their corresponding manuals). > > > > I had similar problem with midnight commander and I solved it by using mc > > --nomouse. So I was hoping for similar command line option for mutt. > > Midnight Commander has support for mouse input events, so they can be > disabled. Mutt does not read mouse events. What you see is probably > your terminal emulator's scrollback buffer (the scrollbar).
If it's the same thing that happens to me, it's not the scrollback buffer. Mutt actually reacts to the scroll wheel, intentionally or not. For example I might be in the pager reading a long message and instinctively roll the the wheel a bit to try to scroll the text. Mutt responds by moving through 9 messages forward/backward for every wheel event, so at least 9 nearby messages flicker on the screen and also get marked read. Then I have to go back to the folder and figure out which ones I haven't seen yet and manually re-mark them "U". If I'm in the folder itself and use the mouse wheel, the position in the folder jumps 9 messages forward/backward in the list for each wheel event. That's not so bad; it's the pager reaction that causes problems. For example earlier today I was reading a message and went to copy/paste a URL with the mouse, and accidentally touched the wheel sending me several messages away and marking them all read along the way. If I use the wheel while composing a message in emacs in the same terminal window, it scrolls 9 lines forward/backward for each wheel event. I don't know if the 9 is significant or just a coincidence. Emacs does know that it's getting mouse events, for example C-h k reports that it's seeing "mouse-4" and "mouse-5" from the wheel. I've seen this sort of thing happen in both gnome-terminal and xfce4-terminal, both locally and over ssh. -Dave Dodge/dodo...@dododge.net