Introduction to newt

Newt is a programming library for color text mode, widget based user interfaces. It can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. Newt is based on the S-Lang library.

This package is known to build and work properly using an LFS 12.1 platform.

Package Information

Newt Dependencies


popt-1.19 and slang-2.3.3


Installation of newt

Install newt by running the following command:

sed -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
    -e '/$(LIBNEWT):/,/rv/ s/^/#/'          \
    -e 's/$(LIBNEWT)/$(LIBNEWTSH)/g'        \
    -i                          &&

./configure --prefix=/usr           \
            --with-gpm-support      \
            --with-python=python3.12 &&

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

sed -e ... -i Disables installation of a static library.

--with-gpm-support: This switch enables mouse support for newt applications through GPM.

--with-python=python3.12: By giving explicitly the name of the directory where python modules reside, this switch prevents building the python2 module.


Installed Programs: whiptail
Installed Library:,, and /usr/lib/python3.12/site-packages/
Installed Directories: None

Short Descriptions


displays dialog boxes from shell scripts

is the library for color text mode, widget based user interfaces