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 OSC52 #6153

Open
jaraco opened this issue Nov 30, 2021 · 3 comments
Open

Add support for OSC52 #6153

jaraco opened this issue Nov 30, 2021 · 3 comments

Comments

@jaraco
Copy link

jaraco commented Nov 30, 2021

Is your feature request related to a problem? Please describe.
I'd like to be able to copy text from a process in a remote session to the clipboard on the local host.

Describe the solution you'd like
OSC52 defines an ANSI character sequence that if recognized by the terminal will transfer the content of the sequence into the clipboard of the system hosting the terminal. See microsoft/terminal#2946 for an implementation in Microsoft Terminal.

This article gives a bit more insight into how osc52 works. I didn't find a canonical spec.

Describe alternatives you've considered
Using a mouse is tedious and often inaccurate. It would be much faster to be able to pipe the content of a process to something that can capture the clipboard.

@jaraco jaraco changed the title Add support for OSC 52 Add support for OSC52 Nov 30, 2021
@Viqsi
Copy link

Viqsi commented Dec 7, 2021

I suspect this would require that xterm.js support it first, and at present, it doesn't appear to - see xtermjs/xterm.js#3260.

@kyet
Copy link

kyet commented May 23, 2024

@Viqsi Just to let you know, xterm.js now supports this.

xtermjs/xterm.js#4220

@Viqsi
Copy link

Viqsi commented May 23, 2024

Coolness, but, alas, I'm not someone who's contributing to this project; I'd just taken an interest a couple years ago. Haven't even tried running hyper in years.

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

3 participants