<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TIL on Abstract Nonsense</title><link>https://abstractnonsense.xyz/tags/til/</link><description>Recent content in TIL on Abstract Nonsense</description><generator>Hugo</generator><language>en-au</language><managingEditor>hello@abstractnonsense.xyz (Yossi Frenkel)</managingEditor><webMaster>hello@abstractnonsense.xyz (Yossi Frenkel)</webMaster><lastBuildDate>Mon, 13 Apr 2026 07:30:10 +0000</lastBuildDate><atom:link href="https://abstractnonsense.xyz/tags/til/index.xml" rel="self" type="application/rss+xml"/><item><title>TIL Hyperlinks in terminal emulators</title><link>https://abstractnonsense.xyz/micro-blog/2026-04-13-til-hyperlinks-in-terminal-emulators/</link><pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate><author>hello@abstractnonsense.xyz (Yossi Frenkel)</author><guid>https://abstractnonsense.xyz/micro-blog/2026-04-13-til-hyperlinks-in-terminal-emulators/</guid><description>&lt;p&gt;TIL that terminal emulators can opt to &lt;a href="https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda"&gt;support hyperlinks&lt;/a&gt; via the OSC 8 escape sequence. In &lt;a href="https://github.com/Alhadis/OSC8-Adoption/?tab=readme-ov-file"&gt;terminals that support it&lt;/a&gt;, the following snippet should produce a clickable link:&lt;/p&gt;
&lt;details class="code-details" open&gt;&lt;summary class="code-summary"&gt;
 &lt;span class="code-summary-text"&gt;shell&lt;/span&gt;
 &lt;/summary&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ &lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;\e]8;;https://abstractnonsense.xyz\e\\This is a link to this blog\e]8;;\e\\\n&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;This is a link to this blog&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;&lt;p&gt;I tested this to work in iTerm and VS Code&amp;rsquo;s terminal, but not in the native macOS Terminal. Conceivably, this could be used nefariously, since a URL rendered may not match the URL &lt;em&gt;opened&lt;/em&gt;. The &lt;a href="https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#security"&gt;linked post&lt;/a&gt; has some valuable points re mitigation and security rationale, though.&lt;/p&gt;</description></item></channel></rss>