We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Oli Lalonde • 10 years ago

Those options have been disabled as of tmux 2.1 and replaced with `set -g mode-mouse on`

Samuel Weckström • 7 years ago

Still works very nicely. Thanks David!

andschwa • 10 years ago

Thanks David! I wondered why my mouse support had support, since I'd previously done steps similar to this, but as others have found, EasySIMBL no longer works, and SIMBL itself must be used directly, might want to add a note.

GoSu • 10 years ago

It's not working at all

There is no .tmux.conf file, and when I create it, and run the command "source ~/.tmux.conf" it report that :

-bash: set: -g: invalid option

set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

-bash: set: -g: invalid option

set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

-bash: set: -g: invalid option

set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

-bash: set: -g: invalid option

set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

andschwa • 10 years ago

The instructions are NOT "not working at all," you didn't follow them exactly. You need to run the *Tmux* command, not the Bash command. That is, with Tmux open, type your Tmux prefix (Ctrl-b by default) then type a literal ":" and in the prompt that comes up, run "source-file ~/.tmux.conf" (Tmux aliases source to source-file by the way).

And of course ~/.tmux.conf didn't exist by default, it's your personal configuration file, why would it exist before you make it?

Wouter Martens • 10 years ago

Hi David,

I'm trying to enable mouse support in tmux through the Terminal app on Yosemite. However... after following your guide (using easySIMBL, MouseTerm Plus and the lines in .tmux.conf), tmux still keeps scrolling through my command history.

Googling and stackoverflow doesn't seem to point me in the right direction to solve this issue. Do you know what might be wrong maybe? Thanks in advance...

(Other info: I'm using zsh configured by zgen.)

David • 10 years ago

Hey Wouter, can you let me know what version of Tmux you're using? You can find out by running the command `tmux -V`.

Wouter Martens • 10 years ago

Hi David, I'm running version 2.0 (installed through Homebrew). I first tried installing your patched version, but the git://git.code.sf.net/p/tmu... repo doesn't seem available anymore. So I figured to start using the "stable" version first.

David • 10 years ago

Ah yes, they recently moved their repo to Github, I'll update that post, thanks!

Maybe 2.0 already uses the new mouse config settings. Did you try adding the following line to your tmux.conf, as well as the lines in this article here (Tmux will either use one or the others and should ignore whichever it doesn't support)

set-option -g mouse on

Wouter Martens • 10 years ago

I tried to add in that line as well... But without success. Is there a way I can verify if the SIMBL plugin works correctly? Because I tested opening a file using vi. And I can scroll with the mouse. However, if I disable MouseTerm through easySIMBL... scrolling keeps working in vi (after a terminal restart). And I don't know if it did so by default already (before trying to get this to work).

Thanks for you time already btw ;-).

David • 10 years ago

Yes! I believe you can see if MouseTerm was installed correctly by opening up Terminal.app, going to the "Shell" menu and checking if at the bottom there's an item called "Send mouse events". It looks like this screenshot:

https://www.dropbox.com/s/7...

I think Vi does indeed work without having MouseTerm installed, but I'm not sure.

I'm not sure how to proceed if it turns out that MouseTerm Plus isn't "sticking". Maybe try installing just regular MouseTerm instead?

Wouter Martens • 10 years ago

Ok... so that caused my problem. As it turns out easySIMBL doesn't work anymore under OS 10.10.4: https://github.com/norio-no....

If one wants to get it to work in that case, the original SIMBL-0.9.9 (http://www.culater.net/soft... needs to be used. Instructions on how to transition from easySIMBL can be found here: https://gist.github.com/het...

I'm glad I found the solution because of your help ;-). Thanks a lot!

I've got just one more question... Are you planning on updating your patched version of tmux (for smoother mouse scrolling) to fetch the code from the new github repo? Just wondering...

David • 10 years ago

Oh wow, good find! :-)

I did update the custom brew tmux formula yesterday after you informed me it didn't work anymore, but Github still needs to update its cache, apparently. For now you can use the direct link to the updated file as follows:

brew install https://raw.githubuserconte...

Hope that works!

Wouter Martens • 10 years ago

It works ;-). Thanks a lot for helping me out...

David • 10 years ago

Awesome! I just updated to 10.10.4 and had the same issue, so thanks for finding out before how to fix it or I would've been in trouble ;-)

I updated the article above and removed the EasySIMBL instructions. I credited you for finding out about it! Cheers!

Jerry Thompson • 9 years ago

I'm on 10.10.5, using SIMBL, Tmux 2.0, MouseTerm 1.0b.1

Scrolling works perfect, but mouse selection does not work unless I toggle
"Send Mouse Events" off under the "Shell" menu.

Is that normal?

----OK, so found out that holding down 'option' key gives me back
cut and paste / and still have scrolling working. This when

'Send Mouse Events'

is on.