Andrey Fedorov
Andrey Fedorov

Reputation: 9689

What program can help a REPL shell remember and search history?

I'm playing with Paul Graham's arc, and it's getting really annoying that the up arrow inserts ^[[A instead of the previous command, and ^R doesn't work as in shell. I vaguely remember there being a simple way to run Arc's REPL in a program which will remember the input history - does anyone know what it is?

Upvotes: 6

Views: 402

Answers (3)

Fabien
Fabien

Reputation: 7049

nex3's arc on github comes with a script arc.sh which calls rlwrap by default, and an emacs mode to use the history with alt+P and alt+N.

Upvotes: 0

Jouni K. Seppänen
Jouni K. Seppänen

Reputation: 44142

I like rlwrap too, but other options include:

  • Emacs modes:
  • ssfe (the frontend part of sirc)
  • jline (especially if the REPL is written in Java, which arc is not)

Upvotes: 7

Nicholas Riley
Nicholas Riley

Reputation: 44331

Perhaps you're thinking of rlwrap?

Upvotes: 7

Related Questions