Question

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?

Was it helpful?

Solution

Perhaps you're thinking of rlwrap?

OTHER TIPS

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)

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top