<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>firstfinger</title><link>https://blog.firstfinger.io/</link><description>Recent content on firstfinger</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 26 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.firstfinger.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Fixing xterm-ghostty: unknown terminal type</title><link>https://blog.firstfinger.io/posts/fixing-xterm-ghostty-unknown-terminal-type/</link><pubDate>Tue, 26 May 2026 00:00:00 +0000</pubDate><guid>https://blog.firstfinger.io/posts/fixing-xterm-ghostty-unknown-terminal-type/</guid><description>&lt;p&gt;If you use Ghostty as your terminal on macOS and SSH into remote Linux servers, you&amp;rsquo;ve probably seen this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;root@server:~# clear
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;#39;xterm-ghostty&amp;#39;: unknown terminal type.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;missing or unsuitable terminal: xterm-ghostty
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This happens to everyone who uses Ghostty with remote servers. Here&amp;rsquo;s why it happens and how to fix it properly.&lt;/p&gt;
&lt;h2 id="why-this-happens"&gt;Why This Happens&lt;/h2&gt;
&lt;p&gt;&lt;img src="https://cdn.firstfinger.io/2026/05/fixing-xterm-ghostty-unknown-terminal-type/scr-20260522-oqsw.jpeg" alt="SCR-20260522-oqsw"&gt;&lt;/p&gt;
&lt;p&gt;Ghostty ships with its own terminfo entry called &lt;code&gt;xterm-ghostty&lt;/code&gt;. When you open a terminal, Ghostty sets &lt;code&gt;TERM=xterm-ghostty&lt;/code&gt; in your local shell. When you SSH into a remote server, that &lt;code&gt;TERM&lt;/code&gt; value gets forwarded. The remote server then looks up &lt;code&gt;xterm-ghostty&lt;/code&gt; in its terminfo database &amp;ndash; and finds nothing, because &lt;code&gt;xterm-ghostty&lt;/code&gt; is not in any standard Linux distribution yet.&lt;/p&gt;</description></item><item><title>about</title><link>https://blog.firstfinger.io/about/</link><pubDate>Mon, 25 May 2026 00:00:00 +0000</pubDate><guid>https://blog.firstfinger.io/about/</guid><description>&lt;p&gt;I&amp;rsquo;m Anurag.&lt;/p&gt;
&lt;p&gt;By day I&amp;rsquo;m somewhere in the infrastructure stack — automating things, breaking things, putting them back together a little better. By night the same energy goes into the homelab humming under my desk.&lt;/p&gt;
&lt;p&gt;The pull is mostly the same across both: I like systems I can understand all the way down. The satisfaction of &lt;code&gt;ssh&lt;/code&gt; into a box I own, watching containers start, knowing exactly what touches what. The patience to read a man page instead of guessing. The instinct to script the thing the second time it annoys me.&lt;/p&gt;</description></item></channel></rss>