views:

172

answers:

3

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?

+5  A: 

Perhaps you're thinking of rlwrap?

Nicholas Riley
+6  A: 

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)
Jouni K. Seppänen
I haven't thought about ssfe in over a decade, but it *would* work here. Nice idea.
Nicholas Riley
A: 

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.

Fabien