readline: Command line editing library¶
The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.
Special Update/Build Instructions¶
We build readline using ncurses. Readline needs to be told to link with libtinfo (part of ncurses), this is what the patch 0002-ltinfo.patch does.
0001-macports.patch: Changes to shobj.conf for OS/X, from macports:
0002-ltinfo.patch: We build readline using ncurses, and for that it needs to be told to link with libtinfo (part of ncurses).
Equivalent System Packages¶
$ sudo pacman -S readline-devel
$ conda install readline-devel
$ apt-cyg install readline-devel
$ sudo apt-get install readline-devel
$ sudo yum install readline-devel
$ sudo pkg install readline-devel
$ brew install readline-devel
macports: install the following packages: readline-devel nix:
$ nix-env --install readline-devel
$ sudo zypper install readline-devel
$ sudo slackpkg install readline-devel
$ sudo xbps-install readline-devel
If the system package is installed, ./configure will check whether it can be used.