Copy to clipboard using OSC52 #3209
Copy link
Copy link
Closed as not planned
Labels
Description
Is your feature request related to a problem? Please describe.
Currently copying to clipboard requires xclip, X11 forwarding and a local X11 server.
Describe the solution you'd like
Terminal sequence OSC 52 allows to write data to local clipboard without relying on X11. It is widely supported by terminal emulators and TUI applications, e.g. micro. Quick search shows a Go package that might help.
Additional context
I use Windows Terminal to connect over SSH to a remote headless Ubuntu control node running k9s.
Reactions are currently unavailable

Activity
github-actions commentedon Apr 29, 2025
This issue is stale because it has been open for 30 days with no activity.
benglewis commentedon Nov 10, 2025
This would be really nice. I think that it would also work over SSH, where now it seems like none of the other options work. I'd be happy to try contributing 🙏