about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2024-04-09 22:47:59 -0500
committerCase Duckworth2024-04-09 22:47:59 -0500
commitfdaa18681fe682fd6172c38d27d8b4bf8360b38e (patch)
tree0abcc676ba80c141df509f4ecf668ac06a901db4
parentReorganization (diff)
downloadlam-fdaa18681fe682fd6172c38d27d8b4bf8360b38e.tar.gz
lam-fdaa18681fe682fd6172c38d27d8b4bf8360b38e.zip
Fix buffering
-rw-r--r--core.lua4
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
125env.display = function (r) 125env.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()
128end 129end
129 130
130env.newline = function (r) 131env.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()
133end 135end
134 136
135-------- 137--------