Re-enabled linenoise on OSX and Linux.
h3rald h3rald@h3rald.com
Sun, 15 May 2016 09:44:42 +0200
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
minim.nim
→
minim.nim
@@ -20,7 +20,7 @@ var repl = false
const prelude = "lib/prelude.min".slurp.strip const - USE_LINENOISE = false #(defined(i386) or defined(amd64))# and not defined(windows) + USE_LINENOISE = (defined(i386) or defined(amd64))# and not defined(windows) let usage* = " MiNiM v" & version & " - a tiny concatenative system programming language" & """@@ -91,8 +91,8 @@ echo "MiNiM v"&version&" - REPL initialized."
i.eval prelude echo "Prelude loaded." echo "-> Type 'exit' or 'quit' to exit." - #if USE_LINENOISE: - # discard linenoiseSetCompletionCallback completionCallback + if USE_LINENOISE: + discard linenoiseSetCompletionCallback completionCallback var line: string while true: line = prompt(": ")