diff options
Diffstat (limited to 'tools/repl.nom')
| -rw-r--r-- | tools/repl.nom | 11 |
1 files changed, 6 insertions, 5 deletions
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) |
