Created
March 2, 2026 04:17
-
-
Save sohang3112/969ab7d0d5ad00cb80b9ac4d6f75bd0f to your computer and use it in GitHub Desktop.
Show web url-like behaviour in terminal using ANSI escape codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ANSI escape codes | |
| OSC = "\033]8;;" | |
| ST = "\033\\" | |
| print(f"{OSC}https://example.com{ST}Example Link Text{OSC}{ST}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment