-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"could not expand Ms" with terminal-overrides #3756
Comments
I compiled tmux from master and can confirm that it doesn't solve my problem. Setting terminal-overrides still causes "could not expand Ms". Without setting the terminal-overrides my actual use case still don't work. I assumed that printf is good enough simplified reproduction, but it is not. What I am using is tmux-plugins/tmux-yank plugin and it uses xsel. Unlike what I assumed, #3192 doesn't apply to OSC 52 sent from intercepting local clipboard, only to passing through existing sequences. In my case it still sends empty selection part regardless whether xsel --clipboard or --primary (etc) were used.
|
Your ncurses is probably too old. |
For posterity: I tried updating ncurses to version from debian-testing (6.4+20231121-1) but it didn't help. I end up using custom tmux with b7ea63b patch. After all, maintaining one custom tmux is easier then mosh-client and mosh-server on different machines. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue description
I'm trying to enable clipboard forwarding through mosh according to:
https://gist.github.com/yudai/95b20e3da66df1b066531997f982b57b
when I add this option OSC 52 stops working at all (i.e. even through ssh instead of mosh).
i.e. the following command inside tmux doesn't set the clipboard:
Server logs shows the following:
Without the config it works.
I confirmed that the values are matched as expected:
#3646 Looks similar, but not the same. In my case default Ms expansion string works and i have newer version of ncurses. But it might be the problem with ncurses nevertheless.
I've seen reports that it is not working for a while, for example: mobile-shell/mosh#1054 (comment)
I know that there are workarounds to solve the XY problem and don't need terminal-overrides at all. For example with #3192 fixed, any tmux build from sources after ccc9dc3 would not require setting the override for my usecase to work. Unfortunately this doesn't seem to be included in latest release yet. Similarly building mosh patched with either mobile-shell/mosh#1054 or mobile-shell/mosh#1104 will help as well. Latter was what I was doing for several years, but custom builds is tedious to maintain, so after it broke again and I noticed mosh 1.4.0 is a thing, I am exploring again whether this is maybe solvable with stock builds.
Required information
The text was updated successfully, but these errors were encountered: