From fdeb06f2c9e0bbb8e30de30c54e393cf19d3a3f8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 6 May 2024 19:28:58 -0700 Subject: messing with stuff --- internal/terminal/link.go | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 internal/terminal/link.go (limited to 'internal/terminal/link.go') 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) -} -- cgit v1.2.3