Arc Forumnew | comments | leaders | submitlogin
readline support in interpreter
3 points by tseaver 6173 days ago | 2 comments
Exploratory programming, especially in an expression-driven language, would be much more fluid if the interpreter knew about readline support: building up a complex expression by successive modification is much more "learnable" than having to get it right from the start.

Perhaps the mzscheme I am using is missing an optional readline module?



1 point by febeling 6173 days ago | link

Put this into file ~/.mzschemerc:

(when (regexp-match? #rx"xterm" (getenv "TERM")) (dynamic-require '(lib "rep.ss" "readline") #f))

I posted this earlier, but forgot to append the "rc" to the file name.

-----

4 points by bOR_ 6173 days ago | link

use rlwrap

  rlwrap mzscheme -m -f as.scm

-----