Mouse clic write stuff to terminal after being disconnected from remote #19502

Open
opened 2026-01-31 06:45:16 +00:00 by claunia · 0 comments
Owner

Originally created by @4wk- on GitHub (Mar 7, 2023).

Windows Terminal version

1.16.10261.0

Windows build number

10.0.19045.2604

Other Software

No response

Steps to reproduce

  • Yesterday night, I had a multi windows setup on Windows Terminal, all running the Debian profile, and most of them were connected to a few remote Linux server using SSH.
  • On two windows, I used htop command to see live usage of server hardware (CPU, RAM, etc).
  • Then my computer went to sleep mode and lost internet connection.
  • On all the windows console connected to the remote server, I've got the usual message when getting disconnected client_loop: send disconnect: Broken pipe (I usually do a clear, and move on, but not this time)
  • Only on the 2 windows that were displaying the htop command I have an issue

Expected Behavior

I expect to get a full working console terminal on only windows.

Actual Behavior

But this time, only on the 2 windows that were displaying htop commands, I have a strange behavour of Windows Terminal:
=> Whenever I use my left click or right click on those windows, Windows beep and write to the console some stuff that appear to be the position of my mouse (because it changes whenever I move it then click).
For instance: X4#X4 or r2#r2 etc. Right click write the same kind of stuff but prefixed with ".

I ran exec bash --login to see if it was an issue with my Debian profile, but the issue with mouse click persists.
I didn't find a way to "restart" only those two windows of Windows Terminal to fix them.

Originally created by @4wk- on GitHub (Mar 7, 2023). ### Windows Terminal version 1.16.10261.0 ### Windows build number 10.0.19045.2604 ### Other Software _No response_ ### Steps to reproduce - Yesterday night, I had a multi windows setup on Windows Terminal, all running the Debian profile, and most of them were connected to a few remote Linux server using SSH. - On two windows, I used `htop` command to see live usage of server hardware (CPU, RAM, etc). - Then my computer went to sleep mode and lost internet connection. - On all the windows console connected to the remote server, I've got the usual message when getting disconnected `client_loop: send disconnect: Broken pipe` (I usually do a `clear`, and move on, but not this time) - Only on the 2 windows that were displaying the `htop` command I have an issue ### Expected Behavior I expect to get a full working console terminal on only windows. ### Actual Behavior But this time, only on the 2 windows that were displaying `htop` commands, I have a strange behavour of Windows Terminal: => Whenever I use my left click or right click on those windows, Windows beep and **write to the console some stuff that appear to be the position of my mouse** (because it changes whenever I move it then click). For instance: `X4#X4` or `r2#r2` etc. Right click write the same kind of stuff but prefixed with `"`. I ran `exec bash --login` to see if it was an issue with my Debian profile, but the issue with mouse click persists. I didn't find a way to "restart" only those two windows of Windows Terminal to fix them.
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 06:45:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19502