Re: Incorrect color rendering and yellow background in GNU Screen with gemini-cli
CrazyCat <[email protected]> Sun, 19 Apr 2026 13:37:53 +0200
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------anla1mbiSo0GB0P6xATAZvFP
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
I also experimented troubles with GNU screen colors, trying to use btop
(https://github.com/aristocratos/btop).
Impossible to have a good rendering with GNU screen, but works like a
charm using tmux or directly in console.
Does anyone have a good idea ? Because I prefer screen but I hate having
the awful display of btop in it :)
--
CrazyCat - https://zeolia.chat
Le 17/02/2026 à 05:04, Anton Kratz a écrit :
> 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 very hard to use like this.
>
> gemini works when I am not in a GNU screen session.
>
> 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
> Screen version 4.09.01 (GNU) 20-Aug-23
>
> Anton
--------------anla1mbiSo0GB0P6xATAZvFP
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="2">I also experimented troubles with GNU screen colors,
trying to use btop (<a class="moz-txt-link-freetext" href="https://github.com/aristocratos/btop">https://github.com/aristocratos/btop</a>).<br>
Impossible to have a good rendering with GNU screen, but works
like a charm using tmux or directly in console.<br>
Does anyone have a good idea ? Because I prefer screen but I hate
having the awful display of btop in it :)<br>
<br>
-- <br>
CrazyCat - <a class="moz-txt-link-freetext" href="https://zeolia.chat">https://zeolia.chat</a><br>
</font><br>
<div class="moz-cite-prefix">Le 17/02/2026 à 05:04, Anton Kratz a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAhY1SVX4Fwjgay_2hmOOg3wMxXFwpoF=8LtdBJ3C1g6QOZb7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div style="font-size:small" class="gmail_default">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
very hard to use like this.</div>
<div style="font-size:small" class="gmail_default"><br>
</div>
<div style="font-size:small" class="gmail_default">gemini works
when I am not in a GNU screen session.<br>
<br>
When inside the GNU screen, $TERM is `screen-256color`.<br>
<br>
What I tried:<br>
<br>
Verified TrueColor support inside GSC using a printf escape
sequence; the output correctly displays as orange.<br>
<br>
Configured ~/.screenrc with the following parameters to enable
TrueColor and 256-color support:<br>
<br>
altscreen on<br>
defbce off<br>
truecolor on<br>
attrcolor b ".I"<br>
termcapinfo * 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'<br>
termcapinfo * 'truecolor@'<br>
termcapinfo
xterm*|putty*|rxvt*|konsole*|gnome-terminal*|xfce4-terminal*
'XT'<br>
term screen-256color<br>
<br>
These are my versions:<br>
<br>
XFCE 4.20<br>
openSUSE Tumbleweed, aarch64<br>
GTK Version 3.24.51<br>
X11, not wayland<br>
</div>
<div class="gmail_default" style="font-size:small">Screen
version 4.09.01 (GNU) 20-Aug-23<br>
<br>
</div>
<div class="gmail_default" style="font-size:small">Anton</div>
</div>
</blockquote>
<br>
</body>
</html>
--------------anla1mbiSo0GB0P6xATAZvFP--