You are not logged in.

#1 2018-01-29 15:05:53

sakhnik
Member
From: Kyiv
Registered: 2011-07-09
Posts: 13
Website

How does ncurses 6.1 support 256 colors?

Hi fellow Archers,

I've just noticed that MC is broken after ncurses upgrade to 6.1. Specifically, I can't get it working with 256-color schemes.

Case 1: bare bones gnome-terminal

$ TERM=xterm-256color mc
Unable to use 'modarin256' skin with 256 colors support on non-256 colors terminal.
Default skin has been loaded

Case 2: gnome-terminal + tmux

$ TERM=tmux-256color mc
Unknown terminal: tmux-256color
Check the TERM environment variable.
Also make sure that the terminal is defined in the terminfo database.
Alternatively, set the TERMCAP environment variable to the desired
termcap entry.

$ TERM=screen-256color mc
Unknown terminal: screen-256color
Check the TERM environment variable.
Also make sure that the terminal is defined in the terminfo database.
Alternatively, set the TERMCAP environment variable to the desired
termcap entry.

Not to mention that everything works with ncurses-6.0 like a charm.
Does anyone have an idea how to work around the issue?

Offline

#2 2018-01-29 15:22:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How does ncurses 6.1 support 256 colors?

┌─[Shiv ~]
└─╼ TERM=tmux-256color htop
┌─[Shiv ~]
└─╼ pacman -Q ncurses                                                                                                                                         
ncurses 6.1-2

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-01-29 16:53:28

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: How does ncurses 6.1 support 256 colors?

Moving to [testing] section as ncurses 6.1 is still in [testing].

All the best,

-HG

Offline

#4 2018-02-02 16:59:11

sakhnik
Member
From: Kyiv
Registered: 2011-07-09
Posts: 13
Website

Re: How does ncurses 6.1 support 256 colors?

There is a report in the bug tracker: #57300

Offline

Board footer

Powered by FluxBB