Xfce Forum

Sub domains
 

You are not logged in.

#1 2026-02-17 02:36:22

akratz
Member
Registered: 2026-02-17
Posts: 2
LinuxFirefox 147.0

Incorrect ANSI color rendering and yellow background in GNU Screen usi

Running a gemini-cli that uses 24-bit TrueColor or 256 colors inside GNU screen results in distorted colors. Lots of background highlighted in yellow, overall weird colors. gemini-cli is unusable like this. It works when I am not in a GNU screen session, but I am a heavy GNU screen user.

When inside the GNU screen, $TERM is `screen-256color`.

What I tried:

Verified TrueColor support inside GSC using a printf escape sequence; the output correctly displays as orange.

Configured ~/.screenrc with the following parameters to enable TrueColor and 256-color support:

altscreen on
defbce off
truecolor on
attrcolor b ".I"
termcapinfo * 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
termcapinfo * 'truecolor@'
termcapinfo xterm*|putty*|rxvt*|konsole*|gnome-terminal*|xfce4-terminal* 'XT'
term screen-256color

These are my versions:

XFCE 4.20
openSUSE Tumbleweed, aarch64
GTK Version 3.24.51
X11, not wayland

Offline

#2 2026-02-17 03:24:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,478
LinuxFirefox 147.0

Re: Incorrect ANSI color rendering and yellow background in GNU Screen usi

What version of screen are you running? Truecolor support was added in version 5.0 (though you state that you confirmed treucolor support).

I just tried running gemini-cli in screen (5.0.1), using your config, in Xfce 4.20, on xfce4-terminal (1.1.5), using the default gemini theme on ArchLinux and it worked fine - no distorted colors or odd background highlighting.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2026-02-19 08:34:23

akratz
Member
Registered: 2026-02-17
Posts: 2
LinuxFirefox 147.0

Re: Incorrect ANSI color rendering and yellow background in GNU Screen usi

Thanks for testing. I managed to updated to `Screen version 5.0.0 (build on 2025-03-12 17:03:22)` and the issue is resolved!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 537.81 KiB (Peak: 538.79 KiB) ]