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

Reply via email to