Date: Tue, 05 May 2026 17:51:47 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289872] FreeBSD doesn't recognize xterm-ghotty Message-ID: <bug-289872-227-bnHdPgCbA4@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-289872-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289872 Minsoo Choo <minsoochoo0122@proton.me> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Not A Bug --- Comment #11 from Minsoo Choo <minsoochoo0122@proton.me> --- After few weeks of investigation, I figured out why this happened. Sorry for not being clear at the first place. Background: The ncurses maintainer doesn't want "modern" terminal emulators (e.g. Ghostty, Kitty, Alacritty) to have `xterm-` prefix in terminfo. The terminal emulator developers want that prefix to preserve feature compatibility in programs that look for `xterm-` prefix to determine supported features (e.g. colour support). Even though the emulators manage to expose $TERM with the prefix (e.g. `xterm-ghostty`) from the terminal application itself, this gets ignored in some edge cases like sudo and SSH. More information on this is available in Ghostty documentation [1]. Solution: When opening lldb from ssh session where client uses Ghostty, lldb doesn't print colours with text, which works fine running native lldb on Ghostty. The simplest solution for this is either following the Ghostty document above or adding ncurses-style TERM value without the prefix (e.g. "ghostty") into each program's TERM filter as I did for LLVM [2]. This applies to other softwares that uses TERM filter to detect terminal emulator features. In conclusion, there is nothing we can do on FreeBSD side but let the users and developers find their own solution. [1] https://ghostty.org/docs/help/terminfo [2] https://github.com/llvm/llvm-project/pull/187920 -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289872-227-bnHdPgCbA4>
