Text doesn't get to clipboard with `tmux load-buffer -w`
Author: usecheCreated Mar 3, 2024Updated Sep 24, 2026
Hi!
When I connect remotely with mosh, open tmux and run tmux load-buffer -w, the text doesn't work as expected.
$ echo "oh no! It doesn't work" | tmux load-buffer -w -
$ tmux -V
tmux 3.3a
$ mosh --version
mosh 1.4.0 [build mosh 1.4.0]
Copyright 2012 Keith Winstein <[email protected]>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.Things work as expected when using ssh. Any suggestions here? I tried the workaround in https://github.com/mobile-shell/mosh/pull/1054 and no luck. The workaround in https://sunaku.github.io/tmux-yank-osc52.html does work but it is cumbersome.
Source: mobile-shell/mosh