vercel / vercel/hyper

Add support for OSC52

Open
#6,153 3 comments 5 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.