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 not working on Windows #290

Open
abalter opened this issue Feb 7, 2018 · 22 comments
Open

Mouse not working on Windows #290

abalter opened this issue Feb 7, 2018 · 22 comments

Comments

@abalter
Copy link

abalter commented Feb 7, 2018

I'm runing vim in Windows 10 using the WSL Ubuntu installation.

In Terminus, set mouse=a does not seem to enable mouse controls. However, in the Windows cmd console it works (obviously after typing bash).

Funding this issue

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We only receive your pledge once the issue is resolved & you've verified it.
Fund with Polar
@stale
Copy link

stale bot commented Aug 26, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

@stale stale bot added the S: Stale This issue had no activity for two months label Aug 26, 2018
@wolf99
Copy link

wolf99 commented Aug 30, 2018

Not stale, am seeing this behaviour currently in alpha 54

@stale stale bot removed the S: Stale This issue had no activity for two months label Aug 30, 2018
@abalter
Copy link
Author

abalter commented Aug 30, 2018

Thanks @wolf99. Only stale because no one has worked on it.

I also just tried it again yesterday and was planning to raise the issue.

Scrolling the terminal window also does not work.

@abalter
Copy link
Author

abalter commented Sep 22, 2018

@Eugeny -- any hope for this?

@Eugeny
Copy link
Owner

Eugeny commented Sep 22, 2018

At this moment, this seems to be a winpty issue - it's not forwarding mouse events to the actual windows console underneath. This should be fixed once ConPTY support lands in winpty: microsoft/node-pty#216

@Eugeny Eugeny changed the title Vi/Vim mouse mode not working in WSL Ubuntu. Mouse not working in WSL Ubuntu. Dec 10, 2018
@bewing
Copy link

bewing commented Mar 6, 2019

It looks like ConPTY support is now in winpty 0.80 and 0.81:
microsoft/node-pty@cce934f

@abalter
Copy link
Author

abalter commented Mar 6, 2019

Great! Any idea when the connection will happen in terminus?

@Eugeny
Copy link
Owner

Eugeny commented Mar 8, 2019

@bewing @abalter looks like that still isn't enough as ConPTY itself swallows mouse events before they can get to node-pty: microsoft/terminal#376

@stale
Copy link

stale bot commented May 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

@stale stale bot added the S: Stale This issue had no activity for two months label May 24, 2019
@Eugeny Eugeny removed S: Stale This issue had no activity for two months labels May 24, 2019
@NetherKing1357
Copy link

Any updates on this? Mouse clicks and scrolls still seem to be unregistered on WSL (Ubuntu 18.04).

@Eugeny
Copy link
Owner

Eugeny commented Jun 14, 2020

Still no mouse support in ConPTY: microsoft/terminal#376

Windows Terminal got mouse support recently, but they rely on private conhost.exe APIs instead of ConPTY.

@Eugeny Eugeny changed the title Mouse not working in WSL Ubuntu. Mouse not working on Windows Jun 24, 2020
@Eugeny Eugeny mentioned this issue Jun 24, 2020
@DDoSolitary
Copy link

DDoSolitary commented Aug 22, 2020

I'm using Windows 10 Insider dev channel. Strangely mouse support worked like a charm on build 20190 (with conpty enabled) but stopped working when I updated to build 20197 today.

@BenoitHiller
Copy link

It looks like mouse support in ConPTY finally dropped with version 1.9 of Terminal in May: microsoft/terminal#376 (comment)

Mouse support does not appear to be working in work tabby 1.0.152 with Terminal version 1.9.1942 (at least trying with vim and mouse=a). I guess additional work will be needed to hook things up now?

@Eugeny
Copy link
Owner

Eugeny commented Aug 19, 2021

Windows Terminal ships with its own complete bleeding edge implementation of ConPTY (including an own conhost.exe) - I'm not sure how much work would be involved in importing and integrating it into node-pty and what Microsoft's roadmap is for bringing those changes into the conhost that ships with Windows.

@WisdomWolf
Copy link

So I just noticed that mouse support is working in Tabby 1.0.158 with WSL (Pengwin/WLinux) on Windows 11. I don't think mouse support works on the same Tabby version on my Windows 10 machine, so I'm guessing that Microsoft finally ported the changes into conhost on Windows 11.

@Qix-
Copy link

Qix- commented Dec 8, 2021

Can confirm mouse support is not working in windows 10 as the latest release. I happen to be in the process of upgrading to win11 now, so if I remember I'll report back here to see if it changed anything.

@XaF
Copy link

XaF commented Dec 12, 2021

@Qix- did this end-up working ? Trying out tabby right now, and wondering if my issues with the mouse are related to Win10 too :)

@Qix-
Copy link

Qix- commented Dec 12, 2021

I didn't upgrade to 11 after all, but yeah it seems that is the case. Which is strange because windows terminal supports the mouse. So you'd think it'd be possible.

@Eugeny
Copy link
Owner

Eugeny commented Dec 21, 2021

Windows Terminal is currently shipping its own version of conhost.exe and ConPTY API, which are different from what is available in the OS. I've looked at integrating these in Tabby but it looks like a ton of work :/

@braveltd
Copy link

still dont working

@BugLight
Copy link

Are there any updates on this problem? Maybe some workarounds?

I'm very upset about not being able to use neovim with Tabby :(

@Naolador
Copy link

Naolador commented Aug 1, 2023

The issue was spotted 5 yrs ago and seems it still hasn't been addressed. At least not from my end☹️

@polar-sh polar-sh bot added the polar label Aug 15, 2023
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