A terminal Go library to copy text to clipboard from anywhere. It does so using ANSI OSC52. The
Copy() function defaults to copying text from terminals running locally.
To use this over SSH, using gliderlabs/ssh, use
NewOutput(sshSession, sshSession.Environ()) and make sure you pass the
TERM environment variable in your SSH connection.
ssh -o SendEnv=TERM <host>
Tmux users need to pass an additional environment variable
ssh -o SendEnv=TERM -o SendEnv=TMUX <host>
- vim-oscyank this is heavily inspired by vim-oscyank.