https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289872
Minsoo Choo <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Not A Bug --- Comment #11 from Minsoo Choo <[email protected]> --- 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.
