Skip to content

OSC 52 support #140

@axelkar

Description

@axelkar

https://jdhao.github.io/2021/01/05/nvim_copy_from_remote_via_osc52/
microsoft/terminal#2946
https://www.reddit.com/r/commandline/comments/mqyjby/where_can_i_learn_more_about_osc52/

The OSC 52 escape sequence allows programs to paste text to the clipboard over (plain terminal), SSH, telnet, or anything that provides a full ASCII byte stream to a compatible terminal such as Kitty, iTerm2, tmux, screen, Windows Terminal, etc.

# Shell example
echo "my message" | sh -c 'printf "\033]52;c;%s\a" "$(base64)"'

Metadata

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