Not respond to mouse selection in Tmux (WT: v0.11.1121) #7751

Closed
opened 2026-01-31 01:11:52 +00:00 by claunia · 7 comments
Owner

Originally created by @Jarvis73 on GitHub (Apr 28, 2020).

Environment

Windows build number: 

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal version (if applicable): 0.11.1121.0

Linux server:
 
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

Tmux: 2.6

Steps to reproduce

Open WT -> login linux server

tmux new -s main
ls

Then select a word or something.

Expected behavior

The word/something is selected.

Actual behavior

Nothing is selected.

I think the latest release v0.11.1121.0 made some changes about mouse events and caused the issue because everything was well a few days ago.

Originally created by @Jarvis73 on GitHub (Apr 28, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 0.11.1121.0 Linux server: Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic Tmux: 2.6 ``` # Steps to reproduce Open WT -> login linux server ```bash tmux new -s main ls ``` Then select a word or something. # Expected behavior The word/something is selected. # Actual behavior Nothing is selected. I think the latest release v0.11.1121.0 made some changes about mouse events and caused the issue because everything was well a few days ago.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 28, 2020):

login linux server

It’s very important how you’re doing this.

Are you using the version of SSH that comes with Windows? If so, that is version 7.7 and it doesn’t support transmitting mouse events.

@DHowett-MSFT commented on GitHub (Apr 28, 2020): > login linux server It’s very important how you’re doing this. Are you using the version of SSH that comes with Windows? If so, that is version 7.7 and it doesn’t support transmitting mouse events.
Author
Owner

@thochra commented on GitHub (Apr 28, 2020):

Hi, @DHowett-MSFT
I do have the same issue after last update.
I can ssh my VM and select text, but I can't in tmux anymore.

I'm using the Windows' ssh version.


As a workaround, you go back to previous version:

  • release page => https://github.com/microsoft/terminal/releases/tag/v0.10.761.0
  • download the msixbundle from the assets and reinstall
  • don't forget to open settings to identify the settings folder and rename or copy/paste the content of settings.json into the profiles.json as the file was renamed to settings.json after this version

FYI my settings folder was : C:\Users[MY_USER_NAME]\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

@thochra commented on GitHub (Apr 28, 2020): Hi, @DHowett-MSFT I do have the same issue after last update. I can ssh my VM and select text, but I can't in tmux anymore. I'm using the Windows' ssh version. ---- As a workaround, you go back to previous version: - release page => https://github.com/microsoft/terminal/releases/tag/v0.10.761.0 - download the msixbundle from the assets and reinstall - don't forget to open settings to identify the settings folder and rename or copy/paste the content of `settings.json` into the `profiles.json` as the file was renamed to `settings.json` after this version FYI my settings folder was : C:\Users\[MY_USER_NAME]\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 29, 2020):

Oh, I see what you're reporting. Okay.

This is because tmux asks for terminal to enable "mouse mode":

  • SSH sits in the middle, and passes on the request.
  • Terminal now reliably enables mouse mode.
  • Terminal sends mouse input to SSH
  • SSH ignores it.

You'll need to configure tmux to not request mouse mode, or upgrade SSH.

Alternatively, you can hold down Shift to interact with the Terminal's selection model.

@DHowett-MSFT commented on GitHub (Apr 29, 2020): Oh, I see what you're reporting. Okay. This is because tmux asks for terminal to enable "mouse mode": * SSH sits in the middle, and passes on the request. * Terminal now reliably enables mouse mode. * Terminal sends mouse input to SSH * SSH ignores it. You'll need to configure tmux to not request mouse mode, or upgrade SSH. Alternatively, you can hold down Shift to interact with the Terminal's selection model.
Author
Owner

@thochra commented on GitHub (Apr 30, 2020):

Hi 👋

I didn't know that there is another ssh client available and more up to date than the Windows's additional functionnality one.


For those who falled into the same issue as me:

I picked the information from this post: https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/

Since I installed the Win32 OpenSSH version from chocolatey I found back the behavior I'm used to with tmux.

The only drawback is that I had to disable mouse support (which isn't working atm) in tmux in order to be able to perform double click selects and single click de-selects.
NOTE: do the same with vim if it bother you.

.tmux.conf => set -g mouse off
.vimrc => set mouse=

@thochra commented on GitHub (Apr 30, 2020): Hi 👋 I didn't know that there is another ssh client available and more up to date than the Windows's additional functionnality one. ---- For those who falled into the same issue as me: I picked the information from this post: https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/ Since I installed the Win32 OpenSSH version from chocolatey I found back the behavior I'm used to with tmux. The only drawback is that I had to disable mouse support (which isn't working atm) in tmux in order to be able to perform double click selects and single click de-selects. NOTE: do the same with vim if it bother you. .tmux.conf => `set -g mouse off` .vimrc => `set mouse=`
Author
Owner

@Jarvis73 commented on GitHub (May 8, 2020):

Oh, I see what you're reporting. Okay.

This is because tmux asks for terminal to enable "mouse mode":

  • SSH sits in the middle, and passes on the request.
  • Terminal now reliably enables mouse mode.
  • Terminal sends mouse input to SSH
  • SSH ignores it.

You'll need to configure tmux to not request mouse mode, or upgrade SSH.

Alternatively, you can hold down Shift to interact with the Terminal's selection model.

Thanks! I upgraded SSH to OpenSSH_for_Windows_8.1p1 and the problem was solved.

  • Copy/Paste inside tmux: select by mouse, and paste by C-b + ]
  • Copy to/Paste from system clipboard: hold down Shift, select by mouse and right-click to copy; hold down shift, right-click to paste
@Jarvis73 commented on GitHub (May 8, 2020): > Oh, I see what you're reporting. Okay. > > This is because tmux asks for terminal to enable "mouse mode": > > * SSH sits in the middle, and passes on the request. > * Terminal now reliably enables mouse mode. > * Terminal sends mouse input to SSH > * SSH ignores it. > > You'll need to configure tmux to not request mouse mode, or upgrade SSH. > > Alternatively, you can hold down Shift to interact with the Terminal's selection model. Thanks! I upgraded SSH to OpenSSH_for_Windows_8.1p1 and the problem was solved. * Copy/Paste inside tmux: select by mouse, and paste by `C-b + ]` * Copy to/Paste from system clipboard: hold down Shift, select by mouse and right-click to copy; hold down shift, right-click to paste
Author
Owner

@ghost commented on GitHub (Jun 18, 2020):

:tada:This issue was addressed in #6485, which has now been successfully released as Windows Terminal Preview v1.1.1671.0.🎉

Handy links:

@ghost commented on GitHub (Jun 18, 2020): :tada:This issue was addressed in #6485, which has now been successfully released as `Windows Terminal Preview v1.1.1671.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.1.1671.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Jun 30, 2020):

:tada:This issue was addressed in #6485, which has now been successfully released as Windows Terminal v1.0.1811.0.🎉

Handy links:

@ghost commented on GitHub (Jun 30, 2020): :tada:This issue was addressed in #6485, which has now been successfully released as `Windows Terminal v1.0.1811.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.0.1811.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7751