hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Hyper doesn't correctly support mouse mode in tmux 2.5

Open Joe8Bit opened this issue 7 years ago • 46 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: OSX 10.12.5
  • Hyper.app version: Version 1.3.3 (1.3.3.1754)
  • Link of a Gist with the contents of your .hyper.js: Vanilla install, no customisation.
  • Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

Mouse mode in tmux 2.5 (stable) does not appear to function.

Steps to reproduce (from clean install of all tools)

  1. Install Hyper
  2. Install tmux via brew install tmux
  3. Configure tmux to use mouse mode by echo "set -g mouse on" >> ~/.tmux.conf
  4. Run tmux
  5. Inside a tmux session run tmux split-window

Expected behaviour

You should be able to use the mouse to select which pane within the tux session is active.

Actual behaviour

No effect. It does not allow mouse interaction with panes in tmux, and no obvious logging is produced within Hyper to indicate an error.


I've validated this functions as expected in Terminal.app and iTerm with same config and installation steps.

Joe8Bit avatar Jul 20 '17 20:07 Joe8Bit

experienced this as well with tmux 2.5 running on a mbp 2013.

ig0rsky avatar Jul 26 '17 01:07 ig0rsky

👍

lmayorga1980 avatar Aug 09 '17 18:08 lmayorga1980

I am having this exact same issue with Hyper (version 1.4.2) on Windows 10. I'm using Hyper for Windows Subsystem for Linux and can not get the mouse to work correctly at all in tmux within Hyper. It works fine within the WSL Ubuntu terminal emulator (which doesn't have other features that Hyper has). Is there any fix on this? Thanks!

codiwest avatar Sep 02 '17 20:09 codiwest

Same problem with Midnight Commander. So this issue is not specific to tmux, it seems that Hyper just ignores mouse input. In Terminology and GNOME Terminal it works fine.

jobukkit avatar Sep 03 '17 09:09 jobukkit

It's a huge bummer. I would think this is relatively simple to fix?

codiwest avatar Sep 04 '17 04:09 codiwest

I have serious issues with tmux, like in Visual Mode, selecting things then copying, hyper just hangs.

Also, sometimes, the mouse buttons starts typing things.

rdlu avatar Sep 05 '17 17:09 rdlu

Completely ignoring mouse input is a huge issue for me and is really preventing me from using hyper.

simoniz0r avatar Sep 13 '17 22:09 simoniz0r

I also have this issue, both with macOS and Debian. It would be great if this could be fixed, as I really enjoy hyper though need tmux.

ghost avatar Oct 02 '17 23:10 ghost

Is there any update on this issue ?

hdiass avatar Jan 18 '18 11:01 hdiass

Same problem on OSX with tmux 2.6 and hyper 1.4.8.

laibulle avatar Jan 24 '18 13:01 laibulle

Same problem here. OSX with tmux 2.6 and hyper 1.4.8.

0xpetersatoshi avatar Mar 04 '18 18:03 0xpetersatoshi

Hello, is there Any update on this issue ?

2018-03-04 18:40 GMT+00:00 Peter Begle [email protected]:

Same problem here. OSX with tmux 2.6 and hyper 1.4.8.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zeit/hyper/issues/2020#issuecomment-370252472, or mute the thread https://github.com/notifications/unsubscribe-auth/Acld85meVeKLUG0MT8ylZWlrkQ5B2fvlks5tbDUhgaJpZM4OeoWz .

hdiass avatar Mar 06 '18 14:03 hdiass

Also happens to me.

When clicking on a pane in tmux, random characters gets typed in the terminal.

Hyper v1.4.8 tmux v2.5 Ubuntu 17.10

This issue is the reason why I won't be using Hyper for now. Will wait till this is fixed.

Please fix this. Hyper is awesome!

joboyx avatar Mar 30 '18 15:03 joboyx

Running into this. Windows 10 + hyper + tmux

shawwn avatar Apr 28 '18 15:04 shawwn

  • OS version and name: windows 10 pro 1709 wsl(ubuntu after Fall Creators Update)
  • Hyper.app version: Version 2.0.0
  • Link of a Gist with the contents of your .hyper.js: .hyper.js
  • Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: yes

tmux(V2.1) mouse select pane not working

oneone1995 avatar May 11 '18 02:05 oneone1995

same problem. Hyper is awesome for real(except this :( )

szthanatos avatar Aug 13 '18 09:08 szthanatos

Can confirm that this still is an issue. Using zsh on WSL.

bootldrDNB avatar Nov 07 '18 21:11 bootldrDNB

Still an issue using tmux + zsh in WSL. I am also having scrolling issues when using split panes, or running vim. Scrolling causes the entire terminal output to scroll rather than scrolling within an individual pane or the buffer in vim.

abid-mujtaba avatar Dec 05 '18 14:12 abid-mujtaba

Still an issue. Hyper is ignoring all mouse inputs.

h-okon avatar Feb 09 '19 23:02 h-okon

+1

ChipWolf avatar Feb 23 '19 21:02 ChipWolf

Works for me. Try hyper 3

pablopunk avatar May 14 '19 09:05 pablopunk

I have Hyper version 3.0.0 (stable) and it still is not working for me.

@pablopunk what exactly is working for you and what settings are you using to get it to work?

abid-mujtaba avatar May 14 '19 20:05 abid-mujtaba

@abid-mujtaba using tmux with mouse works perfectly for me. I can focus splits, resize them, focus window, etc. The only thing that didn't work for me was ALT+mouse to select text in Mac, but it does now with this hyper option macOptionSelectionMode: 'force'

pablopunk avatar May 15 '19 09:05 pablopunk

@pablopunk would you mind sharing your tmux version and a gist of your .tmux.conf and .hyper.js?

I am running tmux version 2.6 and have setw -g mouse on in my .tmux.conf but no luck.

abid-mujtaba avatar May 15 '19 13:05 abid-mujtaba

@abid-mujtaba

I got set -g mouse on as you can see

pablopunk avatar May 15 '19 14:05 pablopunk

Thanks @pablopunk. I guess, I can try updating to tmux 2.8. It might also be a Windows/WSL thing.

If I can impose on you one last time, could you reduce your .tmux.conf to just the set -g mouse on (remove all other configuration temporarily) and verify that the mouse still works. Much obliged.

abid-mujtaba avatar May 15 '19 14:05 abid-mujtaba

@abid-mujtaba yep, still working. Yeah it's probably due to WSL cause I also had some troubles with it using it with Hyper, maybe even the same as you. Is it working with Windows cmd?

pablopunk avatar May 15 '19 14:05 pablopunk

@pablopunk I wouldn't even know where to begin setting up tmux on Windows cmd. I will gain access to an Arch Linux machine in a couple of days and test it out there.

abid-mujtaba avatar May 15 '19 15:05 abid-mujtaba

@abid-mujtaba I meant that you can use WSL inside cmd. Just run a cmd window and type bash

pablopunk avatar May 15 '19 15:05 pablopunk

@pablopunk just tried using the default shell in hyper (cmd) and then typed bash to gain access to WSL. Still no mouse action.

Also, does scrolling work for you, especially inside vim (with or without tmux)?

abid-mujtaba avatar May 15 '19 15:05 abid-mujtaba