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

tmux mouse mode not working from a Git Bash terminal inside Tabby #9783

Open
marcemv90 opened this issue Jul 12, 2024 · 0 comments
Open

tmux mouse mode not working from a Git Bash terminal inside Tabby #9783

marcemv90 opened this issue Jul 12, 2024 · 0 comments
Labels

Comments

@marcemv90
Copy link

marcemv90 commented Jul 12, 2024

Describe the problem:
Hi 👋,

First of all, congratulations for such a great, tool, we love it ❤️. Let me explain the problem we are having with Tabby:

We are using Tabby to open a Git Bash for Windows terminal and then SSH to a remote server where I work with tmux, but seems there's something not working well in Tabby, as mouse mode doens't work (scroll tmux output with the mouse, use mouse to switch panes and windows, etc.).

The problem seems to be with Tabby, as we tested the following:

TL;DR:

Outside Tabby mouse mode works in tmux inside a SSH session, inside Tabby it doesn't.
Tabby's internal SSH client works.


  • ✔️ tmux mouse mode is correctly set in the .tmux.conf with set -g mouse on.
  • ✔️ Running the bash.exe binary outside Tabby, then SSHing to the server and run tmux with mouse mode works fine.
  • ✔️ Running a Windows cmd.exe outside Tabby, then run bash.exe from Git for Windows, then SSH to the server and run tmux with mouse mode also works fine.
  • ❌ Running bash.exe from Tabby and SSH to the server and run tmux with mouse mode doesn't work.
  • ❌ Running cmd.exe from Tabby, then SSH to the server and run tmux with mouse mode doesn't work either.
  • ❌ Running cmd.exe from Tabby, then run bash.exe from Git for Windows, then SSH to the server and run tmux with mouse mode doesn't work either.
  • ✔️ Using Tabby's SSH client to connect to the server and run tmux does work fine with the mouse wheel, but I don't use this option because we have a SSH tunneling setup in place, and Tabby doesn't work with my ssh config file as it is, as it quite complex.

To Reproduce:

  • Install latest version of Git for Windows

  • Install latest version of Tabby

  • Open Tabby and set up a new profile that uses bash.exe from Git for Windows

    image

  • Open a Git Bash tab in Tabby and ssh to a remote machine (The remote machine must have tmux installed):

    image

  • Enable mouse mode in .tmux.conf

    echo "set -g mouse on" >> $HOME/.tmux.conf
    
  • Open a tmux session

    tmux
    
  • Run some commands to populate the terminal output

    ps -ef
    ps -ef
    ps -ef
    
  • Try scrolling up with the mousewheel to see the output from those commands. It shows the previous output in the terminal, not the output of the previous ps -ef commands. Also switching panes with the mouse neither works:

    • Split pane in vertical with Ctrl+b+%. Now you should have 2 panes.
    • Try switch focus between panes by clicking each with the mouse. It doesn't set the focus.

Hope you can have a look to this, as we like Tabby so much, and its just sad not being able to use tmux.

Let us know if you need us to provide further information.

Have a nice one,

Regards!

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

1 participant