Hyperlink escape codes
To print out a clickable hyperlink in a [terminal that supports] the OSC8 escape code, use:
printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'
Found via trying to get the gh cli to output nicer code search results that I can get more context from