-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Scroll wheel does not work in tmux in WSL #1114
Comments
Apologies, there's one extra reproduction step I forgot to mention: 3.5. In tmux, enable This will enable mousewheel scrolling. |
Mouse mode indeed does not work for me either. Turning off mouse mode does not help. This behavior is more clear when you split horizontally in Tmux and attempt to scroll the top or bottom pane. |
I have tried various mouse configurations, including on the tmux side to no avail. I wonder what is the best way to debug the character escape sequences of a terminal emulator? In any case, onward. |
I have similar issue with ConEmu 170807, which is running Cygwin ssh via |
I have the same issue using ConEmu with WSL and then attempting to use the mouse with vim (mouse=a). Works fine with regular cmd or powershell. |
How do you run WSL? |
this is a dealbreaker for me. I'm running WSL with c:\Users\thomas\AppData\Local\Microsoft\WindowsApps\ubuntu.exe -cur_console:p -c fish |
How many times I shall explain that using of connector is essential?
|
thanks, it's basically working now. however quite often an event (scroll wheel or mouse click) is missed and instead some control characters appear in the console. |
I'm working on improving pty interface. Until then ConEmu does what it can at most |
I'm having the same issue as @tfriedel, where mouse support mostly works but occasionally (sometimes very frequently) sending unrecognised escape codes instead. For me, it only happens in tmux at the prompt with I'm using Debian with fish shell (set via |
@Maximus5 - You mean 180626? Can't find 180628. |
Hey, I using the version 180626, and start wsl with the task:
The mouse scroll working well in the beginning, but when I enter the tmux, it not works anymore(util I exit the tmux) . I'm sure I've set correctly in tmux, as it works well when I run it in the ubuntu.exe I have read BashOnWindows in ConEmu and real search the resolution hardly :( |
@Maximus5 I can confirm that there is still issues on 190217 with mouse & tmux. I launched tmux on bash ( |
I can confirm that this is still present on 190303. If it can help make a diagnostic, I think that the "mouse characters" begin to show when mouse clicks are not useful anymore. For example, using two panes with tmux and mouse mode enabled, the first click in another pane changes the active pane as it should and nothing is displayed; but as soon as no real action is intended (extra or "unsupported" click), the characters appear. Same with the wheel: if you wheel up and there is things to display, everything seems to go well, but if you just start a tmux session and try to wheel down, characters appear. If you went up and down, just the "extra wheel movements" are displayed. |
Still can't reproduce the issue.
|
Hi @Maximus5 For the sake of debugging, I changed it to:
Edit : I just figured out that the things that are written depend of the position of the mouse on the term!
|
I have absolutely no idea if it can matters, but on the Info panel:
Edit: Could this be related to our issue? https://superuser.com/questions/417027/why-are-random-characters-inserted-into-my-tmux-session . The problem there seemed to be that the terminal didn't support "utf-8 mouse" (whatever that means) |
@Maximus5 It seems that the culprit here is the
This @tfriedel @XA21X , would you be in the same situation here, with |
ConEmu+connector do their best to push escape sequences in the input queue atomicly. But it's a byte stream, delays may come somehow |
JFI, it's a mouse mode requested by console. Expected if requested ;) |
I am using cmder (based on ConEmu), and I fix it by checking on the option "Send mouse events to console": Win + Alt + P -> Keys & Macro -> Mouse Options, then check on "Send mouse events to console" option. |
This worked for me, thanks. I Had to update ConEmu manually within Cmder to make it work. For the reference I use Cmder 1.3.12 and updated ConEmu to 190526. |
+1 I can confirm I already had the option enabled but I had to update ConEmu to Preview channel for it work! |
Versions
ConEmu build: 170402-Preview x64
OS version: Windows 10, build 15063 (Creators Update RTM) x64
Used shell version: WSL, invoked as a new task via
*"%windir%\system32\bash.exe -cur_console:p"
tmux version: 2.1
WSL Ubuntu version: 16.04
Problem description
When attempting to scroll a buffer in a WSL tab running tmux, instead of scrolling, the error chime plays, and either
~2
or~3
is printed to the input buffer (depending on the direction scrolled).Steps to reproduce
bash.exe -cur_console:p
(or via the task listed above)Actual results
The Windows error chime plays, and the
~2
or~3
is entered into the input buffer.Expected results
The tmux buffer scrolls.
Interesting notes
Bizarrely, if I show the RealConsole, and attempt to scroll my tmux buffer in that window, it works just fine.
I can also confirm that scrolling works as expected in a plain old Powershell window that's running WSL.
The text was updated successfully, but these errors were encountered: