diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-01-26 22:58:07 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-01-26 22:58:07 -0800 |
commit | 465007f11e5ccfede71e0afda44510eb1eae0ec7 (patch) | |
tree | 9be817c6193593db1f508f4bdb10d95df9115e1c | |
parent | 4be0fa46d8a68e780e8a7a497947fbf9702dec0e (diff) | |
download | mu-465007f11e5ccfede71e0afda44510eb1eae0ec7.tar.gz |
637 - show repl errors properly
We'll never be able to avoid dying on syntax errors. But hopefully we can make sessions easy to restore.
-rw-r--r-- | repl.mu | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/repl.mu b/repl.mu index efc17dd2..90bfa8ac 100644 --- a/repl.mu +++ b/repl.mu @@ -95,7 +95,9 @@ { begin (print-primitive-to-host (("anarki> " literal))) (s:string-address <- read-sexp buffered-stdin:channel-address) + (retro-mode) ; print errors cleanly (t:string-address <- $eval s:string-address) + (cursor-mode) (print-string nil:literal/terminal t:string-address) (print-character nil:literal/terminal ((#\newline literal))) (loop) |