From fdaa18681fe682fd6172c38d27d8b4bf8360b38e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 9 Apr 2024 22:47:59 -0500 Subject: Fix buffering --- core.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core.lua b/core.lua index 20c6b5c..3b0eab0 100644 --- a/core.lua +++ b/core.lua @@ -124,12 +124,14 @@ end env.display = function (r) assert_arity(r,1,1) - io.write(r[1]) + io.write(tostring(r[1])) + io.flush() end env.newline = function (r) assert_arity(r,0,0) io.write("\n") + io.flush() end -------- -- cgit 1.4.1-21-gabe81