Repository navigation
Copy text (Ctrl + C) should use Terminal protocol to copy to clipboard #797
hongquan
started this conversation in
Ideas (Feature Requests)
Replies: 2 comments
|
Is it still not possible to use copy paste over ssh? |
0 replies
|
@redstonerti Yes, still. When pressing Ctrl + C, Harlequin says: "Error copying data to system clipboard". |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If user uses Harlequin on a remote machine, accessing via SSH, the "Ctrl +C" key won't copy the content to the local machine, because Harlequin attempts to use the clipboard of the remote machine.
Solution: Tell Terminal to talk with the clipboard. If using the same machine, Terminal will copy to the current machine clipboard. If using SSH, Terminal will copy to the local machine, not the remote one. The concrete solution is to use escape code (OSC 52). This will work without worrying about the existence of
wl-copy,xclip.This solution works on most of Terminal out there (Kitty, WezTerm, Alacrity, Ghostty etc.), except VTE-based ones like
gnome-terminal.All reactions