GNU bug report logs -
#69598
29.2; colour support based on $TERM value not terminfo database
Previous Next
Reported by: chohag <at> jtan.com
Date: Wed, 6 Mar 2024 23:24:02 UTC
Severity: normal
Found in version 29.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: Jeremie Courreges-Anglas <jca <at> wxcvbn.org>
> Date: Wed, 06 Mar 2024 23:01:46 +0000
> From: chohag--- via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> (CC'd OpenBSD maintainer in case it's a packaging issue somehow)
>
> Emacs with direct colour works only if $TERM is set to xterm-direct.
> Even if $TERM refers to a terminfo entry that is identical (confirmed
> by infocmp):
>
> turtle-direct|Test Emacs,use=xterm-direct,
>
> Within xterm, if TERM is set to turtle-direct and emacs launched with
> -nw, list-colors-display only lists 8 colours.
I believe this is some issue with terminfo, since I see no hits for
the "xterm-direct" string in our sources.
> I am on OpenBSD -current as of a day or so ago.
>
> I haven't tested any other values of $TERM and don't know of any
> with direct colour support anyway.
From NEWS:
** Emacs can support 24-bit color TTY without terminfo database.
If your text-mode terminal supports 24-bit true color, but your system
lacks the terminfo database, you can instruct Emacs to support 24-bit
true color by setting 'COLORTERM=truecolor' in the environment. This is
useful on systems such as FreeBSD which ships only with "etc/termcap".
*** Emacs will now use 24-bit colors on terminals that support "Tc" capability.
This is in addition to previously-supported ways of discovering 24-bit
color support: either via the "RGB" or "setf24" capabilities, or if
the 'COLORTERM' environment variable is set to the value "truecolor".
Did you try the COLORTERM=truecolor setting?
This bug report was last modified 1 year and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.