diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 19:01:15 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 19:01:31 -0800 |
| commit | a84242b849e27147bcad8aabe04fc4bbe45d7fca (patch) | |
| tree | cec7762bc0ead74da5ae5a7fa6e5d0b02250d5a2 /tools | |
| parent | efac694cc065f94f9b0d95ebb35d10bcf9a18691 (diff) | |
Cleaning up say/print and io.write (now you can use (say "foo" inline))
Diffstat (limited to 'tools')
| -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) |
