13

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

ayhid
  • 475
  • 2
  • 10

2 Answers2

16

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

(use-modules (ice-9 readline))
(activate-readline)
Milos
  • 311
  • 3
  • 9
ayhid
  • 475
  • 2
  • 10
0

I do not know what guile is, but for mzscheme, you can input

(require readline)

To interactively enable the arrow-key behavior you're looking for. To enable this behavior when the REPL starts, run it using

mzscheme -il readline
ApproachingDarknessFish
  • 14,133
  • 7
  • 40
  • 79