mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -04:00
We're using glamour for rendering the markdown, and I'm interested in using it in other places too
17 lines
340 B
Go
17 lines
340 B
Go
package termenv
|
|
|
|
import (
|
|
"github.com/aymanbagabas/go-osc52"
|
|
)
|
|
|
|
// Copy copies text to clipboard using OSC 52 escape sequence.
|
|
func (o Output) Copy(str string) {
|
|
out := osc52.NewOutput(o.tty, o.environ.Environ())
|
|
out.Copy(str)
|
|
}
|
|
|
|
// Copy copies text to clipboard using OSC 52 escape sequence.
|
|
func Copy(str string) {
|
|
output.Copy(str)
|
|
}
|