Support manipulate selection data (e.g. clipboard) escape sequence
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: Windows using WSL

- Hyper.app version: 3.0.2
- Link of a Gist with the contents of your .hyper.js: Here
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
- The issue is reproducible in vanilla Hyper.app: Is Vanilla
Issue
I would like to be able to use an escape sequence to modify the system's clipboard. E.g. echo -e "\033]52;c;I have modified the clipboard\033\\" should put the text "I have modified the clipboard" into the clipboard. This doesn't seem to work, and I would like it to.
Some background:
Running echo -e "\033]0;I have modified the clipboard\033\\" changes the window's title to "I have modified the clipboard", so I know I am inputting escape sequences correctly. The particular operating system command escape sequence is described in the xterm control sequences documentation here (search for "Operating System Controls", and underneath that "P s = 5 2 → Manipulate Selection Data".)
I would be happy to contribute any code here, I'm a competent programmer, but I really don't understand this part of the stack, so I'm not sure I'd be helpful. I learned about this escape sequence through this blog post and this video. I want this feature because it seems like it would allow me to copy-paste from my tmux session run on a remote server over ssh without having to enable x-term forwarding, which seems insecure.
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 tracing Hyper.app's existing handling for OSC title-setting sequences and compare it with the xterm control sequences documentation linked in the issue. The work is done when OSC 52 clipboard escape sequences update the system clipboard, including the reported WSL use case.
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