Re: Can't display 256 colors on Midnight Commander running in GNU Screen

Andrew Schulman <[email protected]> Mon, 28 Feb 2022 09:40:30 -0500
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
> I am currently running mc 4.8.27 and GNU Screen 4.09.00.
> 
> I am having trouble getting 256 colors to display in Midnight Commander when it is running within GNU Screen. ?I can confirm that MC 256-color themes display correctly when it is run in the terminal outside of Screen (in xfce4-terminal 0.8.10 on Linux Mint 20.3).
> 
> Currently, I have 'term=xterm-256color' in my screenrc; I'm not sure if that is correct, or whether I should be using something else. It's also not clear to me whether this issue is a Screen or MC configuration problem (or both), but I thought I'd start here where the colors are at least correct in MC when run by itself.

If you run

screen -T screen-256color

or put

term screen-256color

in your .screenrc, then does it work?

Andrew