From a84242b849e27147bcad8aabe04fc4bbe45d7fca Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 19:01:15 -0800 Subject: Cleaning up say/print and io.write (now you can use (say "foo" inline)) --- tools/repl.nom | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tools/repl.nom') diff --git a/tools/repl.nom b/tools/repl.nom index aeac324..daa39d0 100644 --- a/tools/repl.nom +++ b/tools/repl.nom @@ -21,18 +21,19 @@ say "\ " repeat: - %io.write (bright (yellow ">> ")) + say (bright (yellow ">> ")) inline %buff = [] repeat: - %io.write (bright) + say (bright) inline %line = (%io.read "*L") - %io.write (reset color) + say (reset color) inline if ((%line == "\n") or (not %line)): if ((size of %buff) > 0): - %io.write "\027[1A\027[2K" + # clear the line + say "\027[1A\027[2K" inline go to (run buffer) %buff::add (%line::with "\t" -> " ") - %io.write (dim (yellow ".. ")) + say (dim (yellow ".. ")) inline === (run buffer) === if ((size of %buff) == 0): stop %buff = (%buff::joined) -- cgit v1.2.3