A place to cache linked articles (think custom and personal wayback machine)
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

8 个月前
12345678910111213
  1. title: Hyperlink escape codes
  2. url: https://notes.billmill.org/programming/bash/Hyperlink_escape_codes.html
  3. hash_url: f68e9507784b5baf1584085908d60f58
  4. archive_date: 2024-03-13
  5. og_image:
  6. description: To print out a clickable hyperlink in a terminal
  7. favicon: https://notes.billmill.org/favicon.ico
  8. language: en_US
  9. <p>To print out a clickable hyperlink in a [terminal that supports] the <a href="https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda">OSC8 escape code</a>, use:</p>
  10. <pre><code><p class="highlight">printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'
  11. </p></code></pre>
  12. <p>Found via trying to get the <a href="https://notes.billmill.org/computer_usage/git/gh.html">gh</a> cli to output nicer code search results that I can get more context from</p>