screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] FR: Unset COLORTERM within screen until screen adds 24-bi


From: Alex Hutcheson
Subject: [screen-devel] FR: Unset COLORTERM within screen until screen adds 24-bit color support
Date: Tue, 12 Jul 2022 10:49:52 -0400

GNU Emacs 28.1 has broken colors when opened in a screen session with the COLORTERM environment variable set to COLORTERM=truecolor.

To reproduce:

1. Open a terminal that supports 24-bit color (e.g. GNOME Terminal)
2. Run export COLORTERM=truecolor (this is already set by default in many terminal configs)
3. Create a screen session by running screen foo
4. Launch GNU Emacs 28.1
5. Run M-x list-colors-display

Expected behavior: Emacs shows the full spectrum of colors supported in the current terminal

Actual behavior: Emacs shows the names of the full spectrum of colors, but almost all of them are displayed in various shades of gray.

Workaround:
Add unsetenv COLORTERM to ~/.screenrc

The root cause is that GNU Emacs 28.1 added code that enables 24-bit color if the COLORTERM=truecolor, but screen doesn't actually pass through 24-bit color values correctly.

Until screen has support for 24-bit color values, it would be nice if it automatically unset the COLORTERM environment variable during startup.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]