mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

right click context menu gone in tmux #212

Closed mreister closed 5 years ago

mreister commented 5 years ago

When using wlstty with tmux the right click context menu is gone.

I haven't seen anyone else report this.. so i thought it might be related to my tmux conf.

I removed any reference to mouse mode in my config... just in case this may have been conflicting.

Biswa96 commented 5 years ago
mintty commented 5 years ago

In cygwin tmux, right+click still works. However, if an application activates application mouse mode, the mouse menu does not work anymore of course. What's your WSL distro?

mreister commented 5 years ago

Edition : Windows 10 Enterprise Version : 1809 OS Build: 17763.805

I haven't tried this on older releases.

It doesn't work on wsl launched from cmd.exe

Here is my tmux config:

set -g prefix C-a unbind C-b bind C-a send-prefix set -g default-terminal "screen-256color" bind | split-window -h bind - split-window -v unbind '"' unbind % bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D set -g pane-border-fg yellow set -g pane-active-border-fg green set-option -g status-position top set -g status-fg white set -g status-bg blue set -g status-left '' set -g status-right-length 60

set-option -g mouse on

I turned of mouse mode thinking that this is interfering.. but it has the same behavior.

mreister commented 5 years ago

In cygwin tmux, right+click still works. However, if an application activates application mouse mode, the mouse menu does not work anymore of course. What's your WSL distro?

My distro is debian.

mintty commented 5 years ago

I've installed the tmux package in Debian. Running tmux, the mintty context menu still works. Must be related to your config, please debug.

mreister commented 5 years ago

fixed it. It was the set-option -g mouse on that was causing it. I just wasn't reloading my config correctly after i made this change the first time.

mintty commented 5 years ago

Shift+right-click overrides application mouse mode, by the way.