Source File
hyperlink.go
Belonging Package
github.com/charmbracelet/x/ansi
package ansiimport// SetHyperlink returns a sequence for starting a hyperlink.//// OSC 8 ; Params ; Uri ST// OSC 8 ; Params ; Uri BEL//// To reset the hyperlink, omit the URI.//// See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5fedafunc ( string, ...string) string {var stringif len() > 0 {= strings.Join(, ":")}return "\x1b]8;" + + ";" + + "\x07"}// ResetHyperlink returns a sequence for resetting the hyperlink.//// This is equivalent to SetHyperlink("", params...).//// See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5fedafunc ( ...string) string {return SetHyperlink("", ...)}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)