GNU bug report logs -
#41846
[PATCH] Fix 24-bit direct TTY colors on FreeBSD
Previous Next
Reported by: Jan Beich <jbeich <at> FreeBSD.org>
Date: Sun, 14 Jun 2020 07:00:01 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#41846: [PATCH] Fix 24-bit direct TTY colors on FreeBSD
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 41846 <at> debbugs.gnu.org.
--
41846: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41846
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: Jan Beich <jbeich <at> FreeBSD.org>
> Date: Sun, 14 Jun 2020 06:49:31 +0200
>
> FreeBSD only ships with /etc/termcap. However, termcap is limited to 2
> arguments while RGB colors require 3. To support RGB add a fallback via
> COLORTERM, using semicolon version for better compatibility.
>
> https://unix.stackexchange.com/questions/512845/emacs-with-24bit-terminal-support-on-freebsd
> https://gist.github.com/XVilka/8346728#true-color-detection
> https://github.com/alacritty/alacritty/issues/1485
>
> Test case:
> $ pkg install emacs-devel-nox alacritty libxkbcommon mesa-dri dejavu
> $ alacritty
> $ env -u COLORTERM emacs -nw -Q -f list-colors-display
> $ env COLORTERM=rxvt emacs -nw -Q -f list-colors-display
> $ env COLORTERM=truecolor emacs -nw -Q -f list-colors-display
Thanks, I installed the changes on the master branch.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
FreeBSD only ships with /etc/termcap. However, termcap is limited to 2
arguments while RGB colors require 3. To support RGB add a fallback via
COLORTERM, using semicolon version for better compatibility.
https://unix.stackexchange.com/questions/512845/emacs-with-24bit-terminal-support-on-freebsd
https://gist.github.com/XVilka/8346728#true-color-detection
https://github.com/alacritty/alacritty/issues/1485
Test case:
$ pkg install emacs-devel-nox alacritty libxkbcommon mesa-dri dejavu
$ alacritty
$ env -u COLORTERM emacs -nw -Q -f list-colors-display
$ env COLORTERM=rxvt emacs -nw -Q -f list-colors-display
$ env COLORTERM=truecolor emacs -nw -Q -f list-colors-display
[rgb.colorterm.diff (text/plain, attachment)]
This bug report was last modified 4 years and 331 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.