From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: sdt@sebyte.me, 62237@debbugs.gnu.org
Subject: bug#62237: 28.1 or higher: 24-bit true color breaks colours in Emacsen built without X under GNU Screen
Date: Fri, 17 Mar 2023 18:44:19 +0100 [thread overview]
Message-ID: <87sfe3s26k.fsf@gmail.com> (raw)
In-Reply-To: <833563e3xc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Mar 2023 18:30:23 +0200")
>>>>> On Fri, 17 Mar 2023 18:30:23 +0200, Eli Zaretskii <eliz@gnu.org> said:
>> From: Robert Pluim <rpluim@gmail.com>
>> Cc: Sebastian Tennant <sdt@sebyte.me>, 62237@debbugs.gnu.org
>> Date: Fri, 17 Mar 2023 16:39:19 +0100
>>
>> For reasons unknown to me, I actually have COLORTERM=truecolor set in
>> my environment, which tickles this issue. But the only reason it does
>> so is because under screen by default I get
>> TERM=screen.xterm-256color. If I do
>>
>> TERM=xterm-256color src/emacs -Q -nw
>>
>> then I get 24bit colour (according to `display-color-cells')
>>
>> I guess we could drop the 'screen.' prefix in
>> `init_display_interactive', although that does feel like a hack.
Eli> Why not in screen.el?
Because the 24 bit colour detection is done in init_tty. By the time
we get to screen.el itʼs too late.
Eli> Is this screen.FOO format documented somewhere in screen's
Eli> documentation?
Yes:
When screen tries to figure out a terminal name for itself, it first
looks for an entry named "screen.<term>", where <term> is the contents
of your $TERM variable. If no such entry exists, screen tries "screen"
(or "screen-w" if the terminal is wide (132 cols or more)). If even
this entry cannot be found, "vt100" is used as a substitute.
The idea is that if you have a terminal which doesn't support an impor‐
tant feature (e.g. delete char or clear to EOS) you can build a new
termcap/terminfo entry for screen (named "screen.<dumbterm>") in which
this capability has been disabled. If this entry is installed on your
machines you are able to do a rlogin and still keep the correct term‐
--> cap/terminfo entry. The terminal name is put in the $TERM variable of
all new windows. Screen also sets the $TERMCAP variable reflecting the
capabilities of the virtual terminal emulated. Notice that, however, on
machines using the terminfo database this variable has no effect. Fur‐
thermore, the variable $WINDOW is set to the window number of each win‐
dow.
Robert
--
next prev parent reply other threads:[~2023-03-17 17:44 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 9:41 bug#62237: 28.1 or higher: 24-bit true color breaks colours in Emacsen built without X under GNU Screen Sebastian Tennant
2023-03-17 12:15 ` Eli Zaretskii
2023-03-17 15:39 ` Robert Pluim
2023-03-17 16:30 ` Eli Zaretskii
2023-03-17 17:44 ` Robert Pluim [this message]
2023-03-17 18:55 ` Eli Zaretskii
2023-03-18 9:05 ` Robert Pluim
2023-03-18 9:09 ` Eli Zaretskii
2023-03-18 10:02 ` Robert Pluim
2023-03-18 10:37 ` Eli Zaretskii
2023-03-18 11:44 ` Robert Pluim
2023-03-18 13:29 ` Eli Zaretskii
2023-03-20 8:36 ` Robert Pluim
2023-03-20 8:57 ` Sebastian Tennant
2023-03-20 12:17 ` Eli Zaretskii
2023-03-20 12:15 ` Eli Zaretskii
2023-03-20 14:08 ` Robert Pluim
2023-03-20 14:23 ` Eli Zaretskii
2023-03-20 14:51 ` Robert Pluim
2023-03-20 16:26 ` Sebastian Tennant
2023-03-23 8:05 ` Eli Zaretskii
2023-03-18 10:34 ` Sebastian Tennant
2023-03-18 11:38 ` Robert Pluim
2023-03-18 15:01 ` Sebastian Tennant
2023-03-18 15:13 ` Eli Zaretskii
2023-03-18 17:56 ` Sebastian Tennant
2023-03-18 18:35 ` Sebastian Tennant
2023-03-17 16:20 ` Sebastian Tennant
2023-03-17 16:42 ` Eli Zaretskii
2023-03-17 18:31 ` Sebastian Tennant
2023-03-17 19:02 ` Eli Zaretskii
2023-03-17 19:50 ` Eli Zaretskii
2023-03-17 20:18 ` Sebastian Tennant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfe3s26k.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=62237@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=sdt@sebyte.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).