sline is a simple library that easily allows programs to as for user input with support for line-editing and command history. It implements a simple VT100 compatible driver that makes it totally independent of third-party libraries. sline also supports UTF-8 in user input.
sline was originally part of scalc.
This software is still in a very early stage of development. Expect many changes in the near future!
Build by using:
Customize the build process by changing
config.mk to suit your needs.
sline only provides a static library. It's out of the goals of this project to implement a dynamic library version of it. Static libraries allow easier integration into testing and are easier to deploy in general.
You may install sline by running the following command as root:
# make install
This will install the static library under
$PREFIX/lib, as defined by your
/usr/local/lib by default. Header files will be installed
/usr/local/include by default. The Makefile
$DESTDIR variable as well.
sline's API is very simple. You may refer to the sline(3) manual page for an overview on how to use its main subroutine. Other subroutines are listed under the See also section on that manual page.
All contributions are welcome! If you wish to send in patches, ideas, or report a bug, you may do so by sending an email to the sline-devel mailing list.
If interested in getting some news from the project, you may also want to subscribe to the low-volume sline-announce mailing list!
sline is published under an MIT/X11/Expat-type License. See
for copyright and license details.