diff options
author | Case Duckworth | 2024-04-09 22:47:59 -0500 |
---|---|---|
committer | Case Duckworth | 2024-04-09 22:47:59 -0500 |
commit | fdaa18681fe682fd6172c38d27d8b4bf8360b38e (patch) | |
tree | 0abcc676ba80c141df509f4ecf668ac06a901db4 | |
parent | Reorganization (diff) | |
download | lam-fdaa18681fe682fd6172c38d27d8b4bf8360b38e.tar.gz lam-fdaa18681fe682fd6172c38d27d8b4bf8360b38e.zip |
Fix buffering
-rw-r--r-- | core.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core.lua b/core.lua index 20c6b5c..3b0eab0 100644 --- a/core.lua +++ b/core.lua | |||
@@ -124,12 +124,14 @@ end | |||
124 | 124 | ||
125 | env.display = function (r) | 125 | env.display = function (r) |
126 | assert_arity(r,1,1) | 126 | assert_arity(r,1,1) |
127 | io.write(r[1]) | 127 | io.write(tostring(r[1])) |
128 | io.flush() | ||
128 | end | 129 | end |
129 | 130 | ||
130 | env.newline = function (r) | 131 | env.newline = function (r) |
131 | assert_arity(r,0,0) | 132 | assert_arity(r,0,0) |
132 | io.write("\n") | 133 | io.write("\n") |
134 | io.flush() | ||
133 | end | 135 | end |
134 | 136 | ||
135 | -------- | 137 | -------- |