Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 572 forks source link

Mouse selection stops working after running tmux #2026

Open vjunior1981 opened 4 years ago

vjunior1981 commented 4 years ago

I'm pretty sure this is a tmux issue related, but maybe you could point me for any noob thing I could be doing.

Thanks for the amazing software.

best regards, Vitor Jr.

Ps. Sorry for my poor English.

Versions

ConEmu build: 191012 x64 OS version: Windows 10 - version 1803 - build 17134.915 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): zsh (old wsl, can't update by company policies)

C:\Users\v.junior>wslconfig.exe /l
Distribuições do Subsistema do Windows para Linux:
Legacy (Padrão)

# free translation
Windows Subsystem Distributions for Linux:
Legacy (Default)

Problem description

After start terminal a run tmux, selection with mouse is disabled.

Steps to reproduce

  1. Start wsl zsh task (set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C ~ -cur_console:m:/mnt)
  2. Try to select anything on screen using mouse - OK - Current terminal mode: xterm + brpaste
  3. Run tmux
  4. Terminal mode changes to xterm + appkeys + brpaste
  5. Can't select anything with mouse
  6. Manually change terminal mode to windows
  7. Able to select with mouse again
  8. Manually return terminal mode to xterm + appkeys + brpaste
  9. Still able to select with mouse
    • After a while, running nothing specific, mouse select stops working again.

Actual results

Expected results

Additional files

Selecting when task starts, Running tmux, Can't select anything with mouse and terminal mode changed

charsi commented 4 years ago

Ran into this same issue. Tmux running locally allows mouse selection. But if I run tmux inside remote ssh session mouse selection no longer works.

Console2 running a git-bash shell doesn't have this problem.