"use rlwrap foo!"
rlwrap is a simple readline wrapper which fixes this oversite. If you're using macports, port install rlwrap.
rlwrap mzscheme -m -f as.scm
And you have readline'd arc!
Especially in Arc or any other Lispy language, since it does paren matching.
-----
#!/bin/sh cd ~/src/arc0 && rlwrap -C arc mzscheme -m -f as.scm
#!/bin/sh rlwrap -C arc mzscheme -m -e '(load/cd "~/src/arc0/as.scm")'
mzscheme -il readline
(when (regexp-match #rx"term" (or (getenv "TERM") "")) (dynamic-require '(lib "rep.ss" "readline") #f))
And rlwrap is great, but any repl should have readline built-in.
Also, (quit) to exit is too cumbersome. ctrl-d doesn't work either. Apparently ctrl-c ctrl-d is the quickest solution.