-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Mosh + WSL - cannot copy-and-paste #12638
Comments
When you enable Does that work as expected for you? |
The hold-shift workaround doesn't respect vertical panes in tmux (the selection doesn't wrap around the pane borders) so is not helpful unfortunately. I do see that tmux is capturing the mouse events. When using ssh, when I am selecting text, tmux will highlight the selection, wrapping around the vertical pane borders correctly, and upon release of mouse button the selection is copied correctly. But when switch over to mosh then it doesn't work anymore - during the hold-mouse-button phase tmux is highlighting the selection as before; but upon releasing mouse button - the selection isn't copied to clipboard. Perhaps issue is something around how Windows Terminal is passing the mouse-button-release event to ssh vs mosh? |
Hey sorry, haven't had the chance to dig in too much further. The triage queue is deep, sorry this got lost. My theory is that this has to do with OSC52, "MANIPULATE SELECTION DATA", or "copy to clipboard". (see implementation in #5823). I wonder if mosh is eating the OSC52's. That would prevent the Terminal from ever being told what the new clipboard contents should be. |
https://andrewmzhang.com/blog/2020/osc-52-patch-for-vte-0425/ Yea this might be a mosh issue. Can you try changing your tmux conf like in the above posts, to see if that remedies this/? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Windows Terminal version
1.11.3471.0
Windows build number
Version 10.0.19043.1526
Other Software
Ubuntu 18.04 running under WSL
mosh 1.3.2
tmux 2.6
Steps to reproduce
Expected Behavior
Expected that the text is copied and can paste as usual from windows clipboard
Actual Behavior
The clipboaard is untouched. Previous contents still there.
Note: Isolated to some interaction between mosh when run from 'settings.json' in windows terminal.
For the same setup:
The text was updated successfully, but these errors were encountered: