aboutsummaryrefslogtreecommitdiff
path: root/internal/terminal/link.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-05-06 19:28:58 -0700
committerFranck Cuny <franck@fcuny.net>2024-05-06 19:29:57 -0700
commitfdeb06f2c9e0bbb8e30de30c54e393cf19d3a3f8 (patch)
treef5972443b7adcdb6b030ff4391b001856a465d12 /internal/terminal/link.go
parentmove robloxenv to hashienv under `src' (diff)
downloadinfra-fdeb06f2c9e0bbb8e30de30c54e393cf19d3a3f8.tar.gz
messing with stuff
Diffstat (limited to 'internal/terminal/link.go')
-rw-r--r--internal/terminal/link.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/terminal/link.go b/internal/terminal/link.go
deleted file mode 100644
index a50b199..0000000
--- a/internal/terminal/link.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package terminal
-
-import "fmt"
-
-// Link returns a formatted string that represents a hyperlink.
-// The hyperlink is created using the escape sequence for terminal emulators.
-// The text parameter represents the visible text of the hyperlink,
-// and the url parameter represents the URL that the hyperlink points to.
-// For more information on the escape sequence, refer to:
-// https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#the-escape-sequence
-func Link(text string, url string) string {
- return fmt.Sprintf("\x1b]8;;%s\x07%s\x1b]8;;\x07\u001b[0m", url, text)
-}