Add support for OSC52
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the OSC52 overview article and the referenced Microsoft Terminal implementation to understand the sequence and clipboard behavior. Then trace Hyper's terminal output and clipboard integration; the work is done when OSC52 output from a remote process is recognized and transfers its content to the local host clipboard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100