How to configure the Racket interpreter to support command history?

I just installed Racket and tried the interpreter.

However, I apparently cannot go up and down the command history using the arrows (or Ctrl p/ Ctrl n) or use Ctrl rto search through it.

Is it supported? Can I create it using this function?

Based on the Python background, I’m very used to these features and would like them to be available for Racket too.

+4
source share
1 answer

DrRacket IDE

In the Racket IDE, you can hold CTRLwith the arrows to go to the previously written statements in the interaction window.

Racket in the terminal

eXtended REPL

Extended REPL , , CTRL + r. REPL, ,apropos. ,help, , , . , :

  • (require xrepl),
  • racket -il xrepl
  • xrepl, ,install!

readline

readline, :

  • (require readline/rep),
  • racket -il readline
  • , (install-readline!).
+8

All Articles