The Ncurses package contains libraries for terminal-independent handling of character screens.
Prepare Ncurses for compilation:
./configure \ --prefix=/usr \ --with-shared \ --without-debug \ --enable-widec \ --enable-pc-files
The meaning of the new configure option:
--enable-pc-files
This tells Ncurses to generate and install .pc files for pkg-config.
Compile the package:
make
This package has a test suite, but it can only be run after the
package is installed. The tests are in the test/ directory. See the README file in that directory for details.
Install the package:
make install
Move the libncursesw shared library
to /lib and create a new symlink in
/usr/lib:
mv -v /usr/lib/libncursesw.so.* /lib ln -svf ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so
Many packages that use Ncurses will compile just fine against the widechar libraries, but won't know to look for them. Create linker scripts and symbolic links to allow older and non-widec compatible programs to build properly:
for lib in ncurses form panel menu ; do
echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
done
ln -sfv libncurses++w.a /usr/lib/libncurses++.a
ln -sfv ncursesw6-config /usr/bin/ncurses6-config
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
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
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