Search code examples
terminalcommon-lispsbclclispccl

How to use key-bindings when using SBCL & Clozure CL on Terminal


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.


Solution

  • 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? )