Detect truecolor support with terminfo #5319
Labels
A-helix-term
Area: Helix term improvements
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-good-first-issue
Call for participation: Issues suitable for new contributors
E-has-instructions
Call for participation: Has instructions for fixing the issue and opening a PR
Followup to #5312 which was closed before I could comment.
Detecting truecololor support is a complete mess and sadly non standardized. There are multiple semo stanard methods and we probably want to support them all to be on.the save side:
COLORTERM
based detectionsetrgbf
/setrgbb
terminfo capabilities (commonly used in practice like in nvim)RGB
capability (support since ncurses 6.1 whixh is sadly rarely used as its mutually exclusive with 256 color support. (See Update TERMINFO capabilities for 24-bit color support in emacs. kovidgoyal/kitty#1141 for some discussion)We handle undecurl support similarly (check both nonstandard capabilities and environment variables) and use termini for that. The same thing should be possible/easy to accomplish for this case (the setting could be implemented later)
The text was updated successfully, but these errors were encountered: