jesseduffield.lazygit/vendor/github.com/aymanbagabas/go-osc52
Jesse Duffield 3a191b913f Add release notes popup after update
We're using glamour for rendering the markdown, and I'm interested in using it in other places
too
2024-01-13 19:26:26 +11:00
..
LICENSE Add release notes popup after update 2024-01-13 19:26:26 +11:00
osc52.go Add release notes popup after update 2024-01-13 19:26:26 +11:00
README.md Add release notes popup after update 2024-01-13 19:26:26 +11:00

go-osc52

Latest Release GoDoc

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 TMUX.

ssh -o SendEnv=TERM -o SendEnv=TMUX <host>

Credits