10.27. Ncurses-5.9 64 Bit

The Ncurses package contains libraries for terminal-independent handling of character screens.

10.27.1. Installation of Ncurses

The following patch contains updates from the 5.9 branch by the Ncurses developers:

patch -Np1 -i ../ncurses-5.9-branch_update-2.patch

Prepare Ncurses for compilation:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
   ./configure --prefix=/usr --libdir=/lib64 \
   --with-shared --without-debug --enable-widec \

Compile the package:


This package does not come with a test suite.

Install the package:

make install

Prepare ncursesw5-config to be wrapped by the multiarch wrapper and then wrap it:

mv -v /usr/bin/ncursesw5-config{,-64}
ln -svf multiarch_wrapper /usr/bin/ncursesw5-config

Move the Ncurses static libraries to the proper location:

mv -v /lib64/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a /usr/lib64

Create symlinks in /usr/lib64:

rm -v /lib64/lib{ncursesw,menuw,panelw,formw}.so
ln -svf ../../lib64/libncursesw.so.5 /usr/lib64/libncursesw.so
ln -svf ../../lib64/libmenuw.so.5 /usr/lib64/libmenuw.so
ln -svf ../../lib64/libpanelw.so.5 /usr/lib64/libpanelw.so
ln -svf ../../lib64/libformw.so.5 /usr/lib64/libformw.so

Now we will make our Ncurses compatible for older and non-widec compatible programs can build properly:

for lib in curses ncurses form panel menu ; do
        echo "INPUT(-l${lib}w)" > /usr/lib64/lib${lib}.so
        ln -sfv lib${lib}w.a /usr/lib64/lib${lib}.a
ln -sfv libcurses.so /usr/lib64/libcursesw.so
ln -sfv libncurses.so /usr/lib64/libcurses.so
ln -sfv libncursesw.a /usr/lib64/libcursesw.a
ln -sfv libncurses.a /usr/lib64/libcurses.a
ln -sfv libncurses++w.a /usr/lib64/libncurses++.a
ln -sfv ncursesw5-config-64 /usr/bin/ncurses5-config-64
ln -sfv ncursesw5-config /usr/bin/ncurses5-config

Now we will create a symlink for /usr/share/terminfo in /usr/lib64 for compatibility:

ln -sfv ../share/terminfo /usr/lib64/terminfo

10.27.2. Contents of Ncurses

Installed programs: captoinfo (link to tic), clear, infocmp, infotocap (link to tic), ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset
Installed libraries: libcursesw.so (link to libncursesw.so), libformw.[a,so], libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so], and libpanelw.[a,so]
Installed directories: /usr/share/tabset, /usr/share/terminfo

Short Descriptions


Converts a termcap description into a terminfo description


Clears the screen, if possible


Compares or prints out terminfo descriptions


Converts a terminfo description into a termcap description


Provides configuration information for ncurses


Reinitializes a terminal to its default values


Sets and clears tab stops on a terminal


The terminfo entry-description compiler that translates a terminfo file from source format into the binary format needed for the ncurses library routines. A terminfo file contains information on the capabilities of a certain terminal


Lists all available terminal types, giving the primary name and description for each


Makes the values of terminal-dependent capabilities available to the shell; it can also be used to reset or initialize a terminal or report its long name


Can be used to initialize terminals


A link to libncursesw


Contains functions to display text in many complex ways on a terminal screen; a good example of the use of these functions is the menu displayed during the kernel's make menuconfig


Contains functions to implement forms


Contains functions to implement menus


Contains functions to implement panels