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

Mouse scroll/click not available in tmux on wsl (windows 10) #3019

Closed
pszypowicz opened this issue Jul 28, 2020 · 12 comments
Closed

Mouse scroll/click not available in tmux on wsl (windows 10) #3019

pszypowicz opened this issue Jul 28, 2020 · 12 comments

Comments

@pszypowicz
Copy link

I think this is related to the #329

Details

  • Browser and browser version: Firefox 78
  • OS version: Windows 10
  • xterm.js version: 4.8.1

Steps to reproduce

  1. Run demo on windows
  2. In shell open wsl
  3. tmux attach
  4. set -g mouse on
  5. scroll does not work
  6. split the window
  7. changing windows with LMC does not work
@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

It seems to work for me:

recording (20)

What version of Windows 10 is this?

@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

I tried using wsl/tmux on the demo in Firefox and it gave the same results.

@pszypowicz
Copy link
Author

I have insiders preview enabled (the build version is: 19041.388), so maybe that's the fault? I will try it on the laptop with stable release.

@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

I'm on Microsoft Windows [Version 10.0.19041.421] 🤷

@pszypowicz
Copy link
Author

Are you using the wsl2 version too?

@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

Yes I'm on wsl2 as well.

$ cat ~/.tmux.conf
set -g mouse on

$ tmux -V
tmux 2.8

@pszypowicz
Copy link
Author

pszypowicz commented Aug 3, 2020

On Ubuntu 20.04 I have

$tmux -V
tmux 3.0a

and on 18.04:

tmux 2.6

Does not work on neither. I will try to trim my tmux conf for testing.

What distro are you using?
By the way, thanks for helping!

@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

I'm on Debian, which should act the same as Ubuntu.

@pszypowicz
Copy link
Author

pszypowicz commented Aug 3, 2020

So I just installed debian image on both computers I own (one windows Insiders Preview and WSL2, and one Stable and wsl1). Neither worked. Also, debian was clean with only tmux installed + tmux.conf with mouse setting. Also it does not work for me in the VS Code, which is my goal (and the reason I'm so envy to see your screencast :D )

Do you have any idea, what else may cause it?

@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2020

@pszypowicz what happens when you click? Does it do a regular selection?

@pszypowicz
Copy link
Author

Yes, it's just a regular selection, as I would not have mouse setting on in tmux at all. And if I try it directly in the {cmd, powershell, terminal} -> wsl -> tmux then everything works as expected. Just xterm does not work for me (and vs code as a result)

@Tyriar
Copy link
Member

Tyriar commented Oct 19, 2021

Can't reproduce here:

image

@Tyriar Tyriar closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants