Closed vt-alt closed 2 weeks ago
It looks like this is a limitation of the termenv
package, which doesn't support querying the screen
colorspace as it can be hooked up to multiple terminals with different color outputs.
Compatibility Chart
Edit: query support is not general support
Thanks for looking it up! I see that CLICOLOR_FORCE=1
env could be used to force colors. But, that's pity it does not work by default in 2023.
Setting COLORTERM
to an appropriate value (true
or truecolor
) would be enough to make it work. Alternatively start using screen-256color
as your TERM
.
It looks like this is a limitation of the
termenv
package, which doesn't supportscreen
as it can be hooked up to multiple terminals with different color outputs. Compatibility Chart
That limitation actually only applies to querying colors.
Setting
COLORTERM
to an appropriate value (true
ortruecolor
) would be enough to make it work.
Thanks that's also good to know.
Alternatively start using
screen-256color
as yourTERM
.
~This is actually isn't very good workaround as this is not script's job to outsmart users or system on terminal types, and for other user there could be different terminal in different circumstances (dumb terminal, 8-color, etc),~
Or you meant I could set my TERM
after screen
and before script with gum
run. I will look it up. Thanks!
ps. But this will only fix issue for a single user, though.
same here, setting TERM or CLICOLOR_FORCE or COLORTERM
are not work
cannot reproduce this on latest/main.
OK I will try to retest on next release.
Describe the bug When run under screen (which is well known terminal multiplexer)
gum choose
does not highlight selected line with a color.To Reproduce
screen gum choose one two
(orscreen
and thengum choose one two
) shows both lines in gray. In the same terminal window withoutscreen
one line is magenta. In comparison intmux
colors are present (one line is magenta).Expected behavior Hopefully colors are displayed.
Screenshots
Desktop (please complete the following information):
Additional context
screen
actually can perfectly support colors 9same astmux
). But it setsTERM
env variable toscreen
, settingTERMCAP
instead. Maybe this is the cause of misbehavior? MyTERM
value before screen run isxterm-256color
. Afterscreen
run:Color capability is there
AF=\E[3%dm
.For reference https://man.freebsd.org/cgi/man.cgi?query=termcap&sektion=5&format=html