GNU bug report logs - #41846
[PATCH] Fix 24-bit direct TTY colors on FreeBSD

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41846 in the body.
You can then email your comments to 41846 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#41846; Package emacs. (Sun, 14 Jun 2020 07:00:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Beich <jbeich <at> FreeBSD.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Jun 2020 07:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Beich <jbeich <at> FreeBSD.org>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix 24-bit direct TTY colors on FreeBSD
Date: Sun, 14 Jun 2020 06:49:31 +0200
[Message part 1 (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)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 20 Jun 2020 08:34:01 GMT) Full text and rfc822 format available.

Notification sent to Jan Beich <jbeich <at> FreeBSD.org>:
bug acknowledged by developer. (Sat, 20 Jun 2020 08:34:01 GMT) Full text and rfc822 format available.

Message #10 received at 41846-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jan Beich <jbeich <at> FreeBSD.org>
Cc: 41846-done <at> debbugs.gnu.org
Subject: Re: bug#41846: [PATCH] Fix 24-bit direct TTY colors on FreeBSD
Date: Sat, 20 Jun 2020 11:32:55 +0300
> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 Jul 2020 11:24:05 GMT) Full text and rfc822 format available.

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.