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

Open
pataquets opened this issue Jan 9, 2025 · 0 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.

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

1 participant