Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use arrow keys in mzscheme/guile REPL?

When I'm typing in the REPL of guile or mzscheme

(define x 15)

and then press arrow key I get (define x 15)^[[D

Is it a terminal problem? or something needs to be configured? It's painful to rewrite a line for a simple edit

like image 387
ayhid Avatar asked Aug 29 '13 23:08

ayhid


1 Answers

I found the answer for Guile, adding this in ~/.guile will cut it:

(use-modules (ice-9 readline))
(activate-readline)
like image 81
ayhid Avatar answered Oct 20 '22 10:10

ayhid