title: Hyperlink escape codes
url: https://notes.billmill.org/programming/bash/Hyperlink_escape_codes.html
hash_url: f68e950778
archive_date: 2024-03-13
og_image:
description: To print out a clickable hyperlink in a terminal
favicon: https://notes.billmill.org/favicon.ico
language: en_US
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