wezterm with custom config disables OSC52 copy to clipboard
What Operating System(s) are you seeing this problem on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
gnome
WezTerm version
wezterm 20240730-082727-56a27e93
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I tested this because nvim OSC 52 clipboard wasn't working when I used it within wezterm. So I retried it without config ( wezterm -n) and it was working fine. As soon as I use a configuration file (with a mere return {} in it) OSC 52 sequences magically stop working.
To Reproduce
Assert ~/.config/wezterm/wezterm.lua contains:
return {}start wezterm normally. Paste printf $'\e]52;c;%s\a' "$(base64 <<<'Hello world')" and hit enter. You'd expect Hello world to be pasted from the clipboard buffer. However, the previously copied printf command is pasted instead. So the sequence is NOT copied to clipbord.
Conversely this works:
Start wezterm -n and do the same as above - no problems. Everything works as expected. I'm surprised since my config doesn't change anything. Is there an internal trigger maybe?
Configuration
-- ~/.config/wezterm/wezterm.lua
return {}Expected Behavior
Character sequence is correctly copied to X clipboard
Logs
No response
Anything else?
No response
Source: wezterm/wezterm