]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ncurses: install 256 color terminfo files unconditionally
authorTrent Piepho <tpiepho@impinj.com>
Wed, 20 Dec 2017 02:06:24 +0000 (18:06 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 7 Jan 2018 22:52:20 +0000 (23:52 +0100)
There are three 256 color terminfo files that buildroot only installs
if ncurses is configured with wide character support, which also
enables ext-color. There is a fourth 256 color terminfo file that does
not depend on wchar suport and is always installed.

This changes that to always install all four 256 color terminfo files.

When ncurses has ext-colors enabled,it allows 256 fg and bg colors at
the same time. Without ext-colors, it is still possible to use the 256
color terminfo files and one can get a combination of fb and bg colors
that equals up to 256, e.g. 256 fg colors on one background or 16 fg
and 16 bg colors.

In short, the 256 color files work fine without wchar or ext-color
support and support more colors than the normal xterm, etc.  terminfo
files. It's common today for the default terminal to use
xterm-256color and it's nice if thinks like vim and top work out of
the box.

Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ncurses/ncurses.mk

index 94c8c9ade306f11ff4f1b6e755167bd1472f6801..e63b6e4aed201e01b9e9a94295164da786cd38c0 100644 (file)
@@ -50,6 +50,7 @@ NCURSES_TERMINFO_FILES = \
        d/dumb \
        l/linux \
        p/putty \
+       p/putty-256color \
        p/putty-vt100 \
        s/screen \
        s/screen-256color \
@@ -59,6 +60,8 @@ NCURSES_TERMINFO_FILES = \
        v/vt200 \
        v/vt220 \
        x/xterm \
+       x/xterm+256color \
+       x/xterm-256color \
        x/xterm-color \
        x/xterm-xfree86
 
@@ -97,10 +100,6 @@ NCURSES_LINK_STAGING_LIBS = \
 NCURSES_LINK_STAGING_PC = $(call NCURSES_LINK_PC)
 
 NCURSES_CONF_OPTS += --enable-ext-colors
-NCURSES_TERMINFO_FILES += \
-       p/putty-256color \
-       x/xterm+256color \
-       x/xterm-256color
 
 NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_LIBS
 NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_PC