about summary refs log tree commit diff
path: root/src/term/link.py
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@roblox.com>2024-10-04 08:00:34 -0700
committerFranck Cuny <fcuny@roblox.com>2024-10-20 11:54:05 -0700
commitf04063f2f9c20523a5ab1349e331eb53a51efc87 (patch)
tree1f6693b08cd1774a4063c04c997712d5402d7271 /src/term/link.py
parentadd credential manager (diff)
downloadworld-f04063f2f9c20523a5ab1349e331eb53a51efc87.tar.gz
add more tools
Diffstat (limited to '')
-rw-r--r--src/term/link.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/term/link.py b/src/term/link.py
deleted file mode 100644
index d545d05..0000000
--- a/src/term/link.py
+++ /dev/null
@@ -1,9 +0,0 @@
-def link(text: str, url: str) -> str:
-    """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
-    """
-    return f"\x1b]8;;{url}\x07{text}\x1b]8;;\x07\u001b[0m"