Created
March 24, 2025 19:57
-
-
Save jhonnymoreira/bffe7d72dfd033ef104ed177db14fd9f to your computer and use it in GitHub Desktop.
Display a terminal link. Useful for long links.
This file contains 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
export function createTerminalLink(url: string, text?: string) { | |
return `\u001B]8;;${url}\u0007${text ?? url}\u001B]8;;\u0007`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment