1

I'd like to use key-bindings when I use SBCL & Clozure CL on Terminal.

You can use key-bindings when you use Clisp on Terminal. For example, when you type "Control-p", you can list the history of codes you typed. You can even delete a letter when you type "Control-d".

Do you know how to do the same things on SBCL & Clozure CL on terminal as you can do with Clisp?

I use Macbook, and the OS is 10.11.6.

I'd appreciate your help.

Rainer Joswig
  • 136,269
  • 10
  • 221
  • 346
Hiroki
  • 97
  • 1
  • 8

2 Answers2

3

These characteristics are present in CLISP since it is integrated with readline, a package that provides a way to edit the command line in a shell (see the CLISP summary). SBCL and CCL are not integrated with readline, so it is not possible to use those commands with them.

The best solution to use them in a powerful environment with lot of commands is through the combination of the Emacs editor together with the SLIME package. Many tutorials exists on the net on how to install and use them. An added benefit is that Emacs and SLIME work for any implementation of Common Lisp.

Renzo
  • 26,848
  • 5
  • 49
  • 61
1

It's possible if you install "rlwrap" through MacPorts.

If you run sbcl with "rlwrap sbcl" on Terminal, you can use the key-bindings.

(Note: This answer is based on the article: How to customize the SBCL REPL?

How to customize the SBCL REPL? )

Community
  • 1
  • 1
Hiroki
  • 97
  • 1
  • 8