Added GNU readline.
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
(use shell)
|
(use shell readline regex)
|
||||||
|
|
||||||
|
(current-input-port (make-gnu-readline-port))
|
||||||
|
(gnu-history-install-file-manager (string-append (or (getenv "HOME") ".") "/.csi.history"))
|
||||||
|
|
||||||
(define (shell-repl)
|
(define (shell-repl)
|
||||||
(let ((x (read)))
|
(let ((x (read)))
|
||||||
@@ -6,7 +9,6 @@
|
|||||||
#t
|
#t
|
||||||
(begin (execute (list x))
|
(begin (execute (list x))
|
||||||
(newline)
|
(newline)
|
||||||
(display "#;> ")
|
|
||||||
(shell-repl)))))
|
(shell-repl)))))
|
||||||
|
|
||||||
(shell-repl)
|
(shell-repl)
|
||||||
Reference in New Issue
Block a user