PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.38k stars 759 forks source link

Mouse Events Support #1158

Closed colemickens closed 4 years ago

colemickens commented 6 years ago

Please answer the following

If it is a terminal issue then please go through wiki https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH

"OpenSSH for Windows" version ((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion) 7.6.1.0

Server OperatingSystem some random linux box

Client OperatingSystem "Windows 10 Pro"

What is failing mouse events in vim on remote host

Expected output I can click around and move the cursor in vim, or scroll events will be interpreted by tmux.

Actual output Nothing seems to happen with any mouse input.

I'm not sure if this is a Console/PTY/openssh issue, apologies. I'm not sure if this is expected to work or not. I've tried fiddling with various settings in cmd.exe: with/without quickedit enabled, etc.

manojampalam commented 6 years ago

This is not currently supported

guilala commented 6 years ago

+1 It's just a matter of mapping the mouse events to specific escape sequences, right? Something like ^[OA^[OA^[OA^[OA^[OB^[OB^[OB^[OB^[OB for the scroll wheel? Must be easy to accomplish, low hanging fruit. Would be very much appreciated by vim users!

Trolldemorted commented 5 years ago

I guess this explains why tmux' mouse mode doesn't work (?)

maertendMSFT commented 4 years ago

This should be supported in the latest release

Trolldemorted commented 4 years ago

@maertendMSFT the ssh client deployed to W10 2004 is still on version OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5. Can you estimate when this feature will be shipped?

Luk164 commented 4 years ago

I just hit the same problem, wanted to use mc via ssh on another computer and mouse events did not work.

paddywaan commented 3 years ago

I've installed the latest v8.1 from the releases, as well as rebooted however have found that the issue of mouse interop still does not work correctly. I found my way here from: https://github.com/microsoft/terminal/issues/376 and am at a loss as to how to resolve mouse input for use inside of vim/htop/whatnot.

Trolldemorted commented 3 years ago

The recently released w10 version 20H2 (Build 19042.804) is still affected by this bug.

8.1.0.0 was released in 2019, do you have any updates for us @maertendMSFT ?

mbs-c commented 3 years ago

@Trolldemorted See #1693 for the update.

Trolldemorted commented 3 years ago

Thanks, it's good to know that it was intended to be included in 20H2.

singular78 commented 3 years ago

When ssh to wsl on windows, the tmux in wsl can't get mouse event. OpenSSH_for_Windows_8.1p1

Luk164 commented 3 years ago

Works for me after the last update. SSH into a linux allws me to use mouse as expected

xspeed1989 commented 3 years ago

It doesn't work well on 8.6.0.0 when set mouse=on in vim

Trolldemorted commented 3 years ago

Same with tmux' mouse mode. I lost track of all these issues, is there an open one for the problems in TUI programs?

andythedude commented 2 years ago

running 20H2 and it doesn't work. this is the 21st century microsoft... CMON! Linux has had this for decades

singular78 commented 2 years ago

Works for me after the last update. SSH into a linux allws me to use mouse as expected

It doesn't work when ssh to wsl on windows

Luk164 commented 2 years ago

@andythedude What is your setup? Mouse events have been working for me for the last few updates, both via pwsh and wsl. I am running pwsh 7.1.5 and WT 1.11.2921.0 (latest stable from windows store)

singular78 commented 2 years ago

Thank you! It works after I upgrade win10 to win11. I ssh to pwsh on Windows11 from the iTerm on MacOS, then I open wsl in pwsh.

On Mon, Nov 1, 2021 at 10:08 PM Lukas Josai @.***> wrote:

@andythedude https://github.com/andythedude What is your setup? Mouse events have been working for me for the last few updates, both via pwsh and wsl. I am running pwsh 7.1.5 and WT 1.11.2921.0 (latest stable from windows store)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PowerShell/Win32-OpenSSH/issues/1158#issuecomment-956264771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARQTNUZ2YJZ2753ZWATN2DUJ2NL7ANCNFSM4FAZBDPQ .

MANTENN commented 2 years ago

e events have been working for me for the last few updates, both via pwsh and wsl. I am running pwsh 7.1.5 and WT 1.11.2921.0 (latest stable from windows store)

Doesnt work when you SSH into a server; it works only on the WSL instance. Still a PTA to use.

Luk164 commented 2 years ago

@MANTENN It DOES work for me, both via WSL and directly 2021-11-25 17-45-48-cropped

MANTENN commented 2 years ago

@MANTENN It DOES work for me, both via WSL and directly 2021-11-25 17-45-48-cropped

Doesn't work with VIM

francescoboc commented 1 year ago

I am using OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2 on Win10 22H2, and I have no mouse support. Is it there anything I have to do to enable it?

Git-Boy-Slim commented 5 months ago

I would also be very interested in a solution for this. I am on the latest win 10 64bit with Open SSH v9.5.0.0p1-Beta. I can't get any working mouse mode, when I'm sshing into my windows machine. Using wsl locally on the latest Terminal preview recognizes my mouse, but I need ssh support.

Another interesting observation: When I used a different win 11 PC with a very close software setup I was able to use my mouse in nano and tmux over ssh. So there is something, but not for all windows version.

Andrelopithecus commented 5 months ago

I would also be very interested in a solution for this. I am on the latest win 10 64bit with Open SSH v9.5.0.0p1-Beta. I can't get any working mouse mode, when I'm sshing into my windows machine. Using wsl locally on the latest Terminal preview recognizes my mouse, but I need ssh support.

Another interesting observation: When I used a different win 11 PC with a very close software setup I was able to use my mouse in nano and tmux over ssh. So there is something, but not for all windows version.

i ended up going a different route and grabbing alacritty terminal as it is OS agnostic.