<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on firstfinger</title><link>https://blog.firstfinger.io/posts/</link><description>Recent content in Posts 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/posts/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></channel></rss>