Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OSC 52 #1169

Open
halcyon opened this issue Sep 23, 2024 · 1 comment
Open

Add support for OSC 52 #1169

halcyon opened this issue Sep 23, 2024 · 1 comment

Comments

@halcyon
Copy link

halcyon commented Sep 23, 2024

OSC 52 control code can be used to copy text into the clipboard.
tmux has native support for the OSC 52 sequence. See man tmux https://linux.die.net/man/1/tmux under the set-clipboard setting.

It looks like this feature has been implemented in Gnome Terminal - https://gitlab.gnome.org/GNOME/vte/-/issues/2495

Context

If QTerminal could support OSC 52 it would remove the reliance on xclip or xsel and copying in tmux would work regardless of ssh tunnels. For many years I've utilized X11 forwarding via SSH to provide clipboard access to my editor running on a remote system in the terminal. Now that I've switched to Wayland, this no longer seems to be a viable option.

@halcyon
Copy link
Author

halcyon commented Sep 23, 2024

This seems to be a popular request. It seems like there are a lot of terminals and terminal-based tools implementing this.

This repository looks a little bit out of date, but may be helpful with implementation. It also lists a number of terminals that have implemented support for OSC 52: https://github.com/ojroques/vim-oscyank/tree/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant