Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to toggle mouse mode #8

Closed
sidazhang opened this issue Sep 17, 2015 · 11 comments
Closed

Unable to toggle mouse mode #8

sidazhang opened this issue Sep 17, 2015 · 11 comments
Labels

Comments

@sidazhang
Copy link

I use <prefix>M to try to toggle mouse mode. Unfortunately, this is what I got

'cut -c3- ~/.tmux.conf | sh -s toggle_mouse' returned 1

And mouse mode was not triggered.

I am on OSX 10.10.5 and have zsh

@gpakosz
Copy link
Owner

gpakosz commented Sep 17, 2015

The master branch is for tmux HEAD (that you compile from source or install with e.g. brew install --HEAD tmux).

I suspect you're either:

  • running tmux HEAD while using the 1.9 or 2.0 branch
  • running tmux 1.9 or 2.0 while using the master branch

@sidazhang
Copy link
Author

@gpakosz That was indeed the problem. It was my oversight.

I have switched the branch to 2.0 and now it is working perfectly.

Thank you

@gpakosz
Copy link
Owner

gpakosz commented Sep 17, 2015

You're welcome

@gpakosz
Copy link
Owner

gpakosz commented Sep 17, 2015

I added 5133275 which should prevent people from facing this issue since it's not immediately obvious you have to make a branch choice.

@spaddex
Copy link

spaddex commented Feb 8, 2017

Having this issue as well. Just did a fresh git clone, linked the files and so on just like in the description.
Have SSH:ed into a raspberry pi, works fine on the local computer. Made sure xterm is correct as well.
Doing a "ls -lsa" shows .tmux.conf -> .tmux/.tmux.conf
When running + m I get 'cut -c3- ~/.tmux.conf | sh -s _toggle_mouse' returned 2.
The theme doesn't seem to work either, however, the small little box in the titlebar is there.

@gpakosz
Copy link
Owner

gpakosz commented Feb 8, 2017

I'm not sure I understand your problem

  • is tmux running on the pi?
  • if yes, which version.

Also can you run cut -c3- ~/.tmux.conf | sh -s _toggle_mouse from your shell and copy paste anything that would get outputted?

@spaddex
Copy link

spaddex commented Feb 8, 2017

Yes, tmux is running on the pi.
It is running kali.
Ran the command, the output is:

sh: 233: pmset: not found
grep: /status: No such file or directory
sh: 263: sysctl: not found
sh: 265: sysctl: not found
sh: 265: sysctl: not found
sh: 267: sysctl: not found
sh: 267: sysctl: not found
awk: line 1: syntax error at or near )
cut: invalid decreasing range
Try 'cut --help' for more information.
awk: line 1: syntax error at or near )
seq: invalid floating point argument: ''
Try 'seq --help' for more information.
seq: invalid floating point argument: ''
Try 'seq --help' for more information.
awk: line 1: syntax error at or near )
awk: line 1: syntax error at or near )
awk: line 1: syntax error at or near )
sh: 1: battery_hbar_fg: parameter not set

@gpakosz
Copy link
Owner

gpakosz commented Feb 8, 2017

Hmm, that's a lot to discuss...

Can you give me the output of uname -a and uname -s on the pi please?

Also, what's the shell there?

@spaddex
Copy link

spaddex commented Feb 8, 2017

uname -a --> Linux raspberrypi 4.1.19-v7 #1 SMP Tue Mar 15 15:10:00 CDT 2016 armv7l GNU/Linux
uname -r --> Linux
echo $SHELL --> /bin/bash

@gpakosz
Copy link
Owner

gpakosz commented Feb 8, 2017

I'll get my hands on a pi to figure things out

@gpakosz
Copy link
Owner

gpakosz commented Feb 9, 2017

Fixed in master. The issue was unrelated to this one. Next time, can you please open an new issue? (and eventually after analysis we decide it's a duplicate of another issue)

@gpakosz gpakosz added the invalid label Jul 5, 2017
Evans9610 pushed a commit to Evans9610/.tmux that referenced this issue Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants