mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04:00
We're using glamour for rendering the markdown, and I'm interested in using it in other places too |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| osc52.go | ||
| README.md | ||
go-osc52
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
- vim-oscyank this is heavily inspired by vim-oscyank.