hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Mouse events appear to be missing in Windows version

Open orcinus opened this issue 6 years ago • 28 comments

Unlike the Mac OS version, which appears to correctly forward mouse events to local and remote command line apps since v2.0, the Windows version does not.

This makes scrolling through apps a bit of a nuisance if you're used to using the wheel. Also, clicks are not registered / forwarded either, nor things like shift+scroll, which are useful in tmux, especially if you have a person not used to shortcuts (or your custom shortcut setup) sitting in front of the machine.

orcinus avatar Apr 16 '18 23:04 orcinus

Can you give us some steps to reproduce your issue? Can you give us some details about other terminal emulators where this is working?

chabou avatar Apr 16 '18 23:04 chabou

I have the same issue.

Mouse support in Vim is non-existent when using Hyper. (Scrolling moves the whole Hyper window buffer, clicking within Vim does not move cursor.)

mr6volt avatar Apr 16 '18 23:04 mr6volt

Can you give us some steps to reproduce your issue?

Steps to reproduce:

  1. scroll the wheel in less, git, vim or tmux
  2. observe the local buffer scrolling instead of the app doing whatever is bound to scroll action

Expected outcome: The app should do whatever is bound to scroll action

Can you give us some details about other terminal emulators where this is working?

MobaXterm

orcinus avatar Apr 16 '18 23:04 orcinus

Same issue here. Also, even in native cmd.exe or PowerShell.exe mouse events are working correctly now.

Blealtan avatar May 02 '18 07:05 Blealtan

It will be fixed by https://github.com/xtermjs/xterm.js/pull/1310 I'll certainly merge this in our next canary.

chabou avatar May 02 '18 08:05 chabou

Still exists in the current Canary, although vim and neovim no longer scroll incorrectly, they do not get mouse events with set mouse=a.

HybridEidolon avatar Jun 15 '18 19:06 HybridEidolon

I'm also experiencing this on Windows 10, using bash.exe

tylerdavis avatar Nov 03 '18 15:11 tylerdavis

I have the same issue as HybridEidolon. While most mouse events work, vim does not get mouse events with :set mouse=a Thanks for the fantastic terminal though Hyper

willbowden37 avatar Nov 13 '18 22:11 willbowden37

Any updates on this? Trying to use set mouse=a in vim (same as @willbowden37) with no luck

Hyper 3.0.0-canary.7 (canary)

jmsv avatar Feb 07 '19 14:02 jmsv

They problem still exists. Thus I changed to wsltty, works perfectly, but with no tab

zhilizheng avatar Feb 23 '19 07:02 zhilizheng

@chabou Do you have any update on this by chance?

mhall avatar Apr 28 '19 22:04 mhall

This problem persists in recent versions, I'm currently on 3.0.2.

Mouse works well in simple terminal mode. However inside tmux (tried on v2.6 and 2.8) and vi, mouse events (click, scroll) are not working. The only thing work working is the text selector, but it's completely agnostic to borders and panes.

abursuc avatar May 10 '19 07:05 abursuc

I confirm last comment from @abursuc, still the issue in January 2020...

serenya avatar Jan 15 '20 22:01 serenya

I have the same issue

sasasagagaga avatar Jan 19 '20 22:01 sasasagagaga

I can confirm this is still an issue in Hyper 3.0.2.

Happy to help where I can in getting this fixed - including making a PR with some guidance (if I get the time), and trying out pre-release versions :)

G-Rath avatar Apr 12 '20 04:04 G-Rath

How lazy are the developers of Hyper? I am facing the same issue.

ceoshikhar avatar May 08 '20 15:05 ceoshikhar

@ceoshikhar If you have a higher version of windows, you can try the new windows terminal. Its way better than hyper. Hyper just has too many bugs as of today.

rohitkrishna094 avatar May 11 '20 15:05 rohitkrishna094

2.5 years+ and this bug still exists. Give me more thumbs down but this is just funny and cringe.

ceoshikhar avatar Nov 01 '20 20:11 ceoshikhar

2.5 years+ and this bug still exists. Give me more thumbs down but this is just funny and cringe.

Hyper is open source, what's stopping you from fixing this yourself? In the meantime I hope you get a refund for the free software

So you are saying, if one person uses VS Code for developing HTML+CSS static website and finds a bug that has not been resolved for years then the person who reported it has to fix it just because it's open source ?

Edit: He deleted his comment lol

ceoshikhar avatar Nov 02 '20 07:11 ceoshikhar

thought it was a recent bug... terminal suggestions for wsl on windows 10?

caue-santos avatar Nov 05 '20 03:11 caue-santos

terminal suggestions for wsl on windows 10?

Give MobaXterm a try, it's freemium, but the free functionality is very generous, and it "just works". Alternatively, try the new Windows Terminal.

orcinus avatar Nov 05 '20 03:11 orcinus

v3.2.0 problem still persist. Scrolling the wheel in less, git, vim and other does not work as expected. Any chances it may be fixed? Thanks!

yyyar avatar Mar 06 '22 20:03 yyyar

Same here. Just started using hyper on windows and mouse events in things like vim just don't work. Was there ever a solution?

LeviOP avatar Mar 15 '22 21:03 LeviOP

No. Windows are not hipster enough :P

orcinus avatar Mar 15 '22 21:03 orcinus

I guess i'll have to use terminal the intended way and never use the mouse lol

LeviOP avatar Mar 15 '22 22:03 LeviOP

Jesus why isn't it still fixed...

DenisovichDev avatar Aug 03 '22 13:08 DenisovichDev

Just wanted to add mouse events don't work in all terminal applications I've tested in windows. btop4win++, vim, neovim & musikcube. I haven't been able to find a fix. Version 3.4.0-canary.1

DWTW321 avatar Dec 28 '22 09:12 DWTW321

Is this going to be fixed?

Lesnock avatar Aug 02 '23 03:08 Lesnock