[WSL on Terminal] Forced disconnections from tmux over SSH sessions leaves input handling in a broken state. #9608

Open
opened 2026-01-31 01:59:07 +00:00 by claunia · 0 comments
Owner

Originally created by @munael on GitHub (Jul 14, 2020).

Environment

Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 1.0.1401.0

Any other software?
Remote host: Ubuntu 16.04 LTS
Tmux, ssh

Steps to reproduce

  1. Open a WSL session in .
  2. Connect to some remote linux machine.
  3. Configure SSH to use mouse events:
set -g mouse on
  1. Start a new tmux session and add some panes, move around them using the mouse.
  2. Disconnect computer from the Internet.
  3. A few seconds later the SSH client boots you back up to WSL.
  4. Click anywhere in the window. You should see characters like:
0;63;12M0;63;12m

If is Windows Terminal, you should see the bug. If is the bare WSL executable, you shouldn't see the bug.

Expected behavior

Some configuration is being passed to the terminal to enable mouse handling and Windows Terminal honors it for longer than the lifetime of the program that requested it.

It might be the more logical design, but it's a very irritating UX issue that doesn't manifest in older terminals. Also, if it were about cleanup, I would expect that starting the same program again and exiting it normally would fix the issue, but it doesn't.

Actual behavior

  1. Click anywhere in the window. You should see characters like:
0;63;12M0;63;12m

If is Windows Terminal, you should see the bug. If is the bare WSL executable, you shouldn't see the bug.

Originally created by @munael on GitHub (Jul 14, 2020). # Environment ```none Windows build number: 10.0.18363.0 Windows Terminal version (if applicable): 1.0.1401.0 Any other software? Remote host: Ubuntu 16.04 LTS Tmux, ssh ``` # Steps to reproduce 1. Open a WSL session in <X>. 2. Connect to some remote linux machine. 3. Configure SSH to use mouse events: ``` set -g mouse on ``` 4. Start a new tmux session and add some panes, move around them using the mouse. 5. Disconnect computer from the Internet. 6. A few seconds later the SSH client boots you back up to WSL. 7. Click anywhere in the window. You should see characters like: ``` 0;63;12M0;63;12m ``` If <X> is Windows Terminal, you should see the bug. If <X> is the bare WSL executable, you **shouldn't** see the bug. # Expected behavior Some configuration is being passed to the terminal to enable mouse handling and Windows Terminal honors it for longer than the lifetime of the program that requested it. It might be the more logical design, but it's a very irritating UX issue that doesn't manifest in older terminals. Also, if it were about cleanup, I would expect that starting the same program again and exiting it normally would fix the issue, but it doesn't. # Actual behavior <!-- What's actually happening? --> 7. Click anywhere in the window. You should see characters like: ``` 0;63;12M0;63;12m ``` If <X> is Windows Terminal, you should see the bug. If <X> is the bare WSL executable, you **shouldn't** see the bug.
claunia added the Resolution-By-DesignNeeds-Tag-Fix labels 2026-01-31 01:59:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9608