summaryrefslogtreecommitdiff
path: root/vendor/github.com/muesli/termenv/hyperlink.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/muesli/termenv/hyperlink.go')
-rw-r--r--vendor/github.com/muesli/termenv/hyperlink.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/muesli/termenv/hyperlink.go b/vendor/github.com/muesli/termenv/hyperlink.go
new file mode 100644
index 0000000..97e760a
--- /dev/null
+++ b/vendor/github.com/muesli/termenv/hyperlink.go
@@ -0,0 +1,11 @@
+package termenv
+
+// Hyperlink creates a hyperlink using OSC8.
+func Hyperlink(link, name string) string {
+ return output.Hyperlink(link, name)
+}
+
+// Hyperlink creates a hyperlink using OSC8.
+func (o *Output) Hyperlink(link, name string) string {
+ return OSC + "8;;" + link + ST + name + OSC + "8;;" + ST
+}