I've installed Clisp 2.47 on Mac OSX 10.5.5. However many of
the editing features don't seem to work. eg. up arrow prints ^[[A
instead of previous command, tab key prints a tab instead of auto-fill,
and so on. Any idea on what might be the problem, and how it can be
> > * Nima [2008-11-27 02:10:56 -0800]:
> > I've installed Clisp 2.47 on Mac OSX 10.5.5. However many of
> > the editing features don't seem to work. eg. up arrow prints ^[[A
> > instead of previous command, tab key prints a tab instead of auto-fill,
> > and so on. Any idea on what might be the problem, and how it can be
> > fixed?
> you appear to be missing readline.
> how did you install clisp?
> from sources? how did you configure it?
> from a binary distribution? which one?
> what does "clisp --version" print?
Thanks for the great tip.
Initially I had only done ./configure and make, happily ignoring recommended libraries. And indeed the problem was the missing readline. So I went ahead and installed readline and ffcall, then reinstalled clisp. Now command history works, and clisp --version indicates readline:
bash-3.2$ clisp --version
GNU CLISP 2.47 (2008-10-23) (built 3436834192) (memory 3436834399)
Software: GNU C 4.0.1 (Apple Inc. build 5488)
gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -x none -L/usr/local/lib -lreadline -lncurses /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -liconv -L/usr/local/lib -lsigsegv -lc -L/usr/X11/lib -R/usr/X11/lib
SAFETY=0 HEAPCODES STANDARD_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS
GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI UNICODE BASE-CHAR=CHARACTER UNIX MACOS)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /usr/local/lib/clisp-2.47/
User language: ENGLISH
Machine: I386 (I386) nima-as-macbook-pro.local