Is there a way to customize the SBCL REPL in a way that makes it work similar to the CLISP REPL. The standard SBCL REPL isn't really usable on Mac OS X. I can't use the arrow keys or backspace.
SBCL provides a recursive event loop ( serve-event ) for doing non-blocking IO on multiple streams without using threads. SBCL allows restricting the execution time of individual operations or parts of a computation using :timeout arguments to certain blocking operations, synchronous timeouts and asynchronous timeouts.
To quit SBCL, type (quit) .
REPL stands for READ EVAL PRINT LOOP: (loop (print (eval (read)))). Each of the four above functions are primitive Lisp functions. In Lisp the REPL is not a command line interpreter (CLI). READ does not read commands and the REPL does not execute commands.
You could use rlwrap
If you have MacPorts installed you can get it with
sudo port install rlwrap
The invoke sbcl
with
rlwrap sbcl
Most of the people use SBCL REPL with SLIME
. It gives it by far much more features, then readline
, that is used in CLISP. If you aren't comfortable with using Emacs, you can try ABLE
(available through quicklisp) - a very simple editor, that supports some basic REPL features on par with readline
, but as well has basic code highlighting and built-in Hyperspec.
There's vim+slime (slimv) too, for vim users.
You can try linedit which is available via Quicklisp. That said, Emacs+SLIME is a real beast. In fact, Firebug is the only thing close to it that I'm aware of.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With