Skip to content

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

Open
@pataquets

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions