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

Improvement suggestion: add OSC52 as alternate method for copying to clipboard #875

Closed
pataquets opened this issue Jan 9, 2025 · 2 comments

Comments

@pataquets
Copy link

Adding to comment to already merged PR #822 (comment), I'd like to suggest using ANSI OSC 52 escape sequence as alternate method for copying to clipboard, which would have the advantage of not requiring external binaries if terminal app supports it, which most of modern ones do (IIRC, support can be queried programmatically).

I've done a quick search for a golang lib, although OSC escape sequences are a generic feature.
aymanbagabas/go-osc52: Golang terminal ANSI OSC52 wrapper. Copy text to clipboard from anywhere.

@schollz
Copy link
Owner

schollz commented Jan 13, 2025

would accept PR

Copy link

This issue has been marked stale because it has been open for 60 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants