I'm running tmux on gnome-terminal with mouse support activated. When the width of the terminal is not too big then it works flawlessly, however, when I use it in full screen mode the mouse clicks are good if I stay clicking on the left side of the screen, when I got to the right extreme of the screen they stop working.

Here is my .tmux.conf:

set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on
set -g mouse-utf8 on

Note: The mouse clicks works well when I connect to tmux over ssh from my mac on iterm. So I think that the problem might have to do with a misconfiguration of gnome-terminal.


The original mouse protocol only allows columns up to 223.

There are three(!) different, competing extensions that overcome this limit. In chronological order, and in increasing order of preference (that is, each one is better than the previous):

  • xterm 1005
  • urxvt 1015
  • xterm 1006

It's a total chaos which ones certain terminals, app, and multiplexers (e.g. tmux) support, which one's the default, how to configure... and it kept changing throughout different versions of these apps. As far as I remember, tmux used to support 1005 and 1015, but luckily it switched to 1006 around version 1.8. Unfortunately rxvt-unicode maintainer refused to add support for this newest method.

If you upgrade everything to the newest version, it should work from xterm and gnome-terminal; and probably not from urxvt.

For more technical information, see https://www.midnight-commander.org/ticket/2662 and https://www.midnight-commander.org/ticket/2956.


Seems that Gnome Terminal is crippled for some reason... I've tried out rxvt which seems to not suffer from the problem.

Xterm seems to be fine also (although this thread says it shouldn't be).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.