sb-readline implements GNU readline support (including command line editing, history, and so forth) for SBCL. This can be useful during Lisp development, as it allows Lisp users to have editing and history at the SBCL command prompt.
Warning: Broken link! Download ASDF package from http://mirror.switch.ch/ftp/mirror/gentoo/distfiles/sb-readline-0.1.tar.gz
The SBCL train has moved on...
; compiling (IN-PACKAGE :READLINE) ; compiling (LOAD-1-FOREIGN "/lib/libncurses.so") debugger invoked on a SB-INT:UNSUPPORTED-OPERATOR: LOAD-1-FOREIGN is unsupported as of SBCL 0.8.13. Please use LOAD-SHARED-OBJECT.
So make a change in sb-readline.lisp.
Change
(eval-when (:compile-toplevel :load-toplevel :execute) (load-1-foreign "/lib/libncurses.so") (load-1-foreign "/lib/libreadline.so"))Into
(eval-when (:compile-toplevel :load-toplevel :execute) (load-shared-object "/usr/lib/libncurses.so") (load-shared-object "/usr/lib/libreadline.so"))
If you are using SBCL on Mac OS X, be sure to change this to:
(eval-when (:compile-toplevel :load-toplevel :execute) (load-shared-object "/usr/lib/libncurses.dylib") (load-shared-object "/usr/lib/libreadline.dylib"))
You might want to check out linedit.
I've found rlwrap to be a very nice option. (Michael)
Some differences between linedit and rlwrap: (Tim)
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively