wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.28k stars 781 forks source link

OSC 52 does not work in SSH domain #764

Closed Mic92 closed 3 years ago

Mic92 commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

The following works locally (or locally in tmux):

printf '\033]52;c;%s\a' Ki5zcWwKKi50YWdzKgoqLmdlbXRhZ3MqCioudG1wKgoqLm1pbi5qcwoqLm1pbi5jc3MKKi5wbGlzdAoqLnBkZgoqLmEKY29tcGlsZV9jb21tYW5kcy5qc29uCnRhZ3MK

and result in the following text in the clipboard:

*.sql
*.tags*
*.gemtags*
*.tmp*
*.min.js
*.min.css
*.plist
*.pdf
*.a
compile_commands.json
tags

When using wezterm connect + zsh to connect to a machine via ssh, clipboard is not updated.

Environment (please complete the following information):

To Reproduce

see bug description

Configuration

Default except for ssh config:

return {
  color_scheme = "Dracula",
  ssh_domains = {
    {
      -- This name identifies the domain
      name = "eve",
      -- The address to connect to
      remote_address = "eve.thalheim.io",
    }
  },
}

Expected behavior

clipboard is updated

Screenshots

-

Session Recording

-

Additional context

-

bew commented 3 years ago

Just a note for @wez around ssh and OSC52: it does work when using wezterm ssh

Mic92 commented 3 years ago

Interesting! Yes. I can confirm this is working for me too.

Mic92 commented 3 years ago

So it is the multiplexer that does not forward it?

wez commented 3 years ago

This only affects the initially spawned pane in the multiplexer: subsequently spawned tabs/panes do have working clipboard

Mic92 commented 3 years ago

Thanks a lot!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.