summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-22 20:18:58 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-30 22:56:14 +0000
commitf1b8384dcea10c39eff4d0f56f4adcbd707522d2 (patch)
treebfab7c3001bca4d99ecb2ecf58e5132832e4d50c
parent02cc7c6bf355b48b08298aa355f9bd89b3ddf52d (diff)
downloadlem-f1b8384dcea10c39eff4d0f56f4adcbd707522d2.tar.gz
lem-f1b8384dcea10c39eff4d0f56f4adcbd707522d2.tar.xz
lem-f1b8384dcea10c39eff4d0f56f4adcbd707522d2.zip
lem.io: add print()
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
-rw-r--r--lem/io.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lem/io.lua b/lem/io.lua
index bd24d66..e1c5738 100644
--- a/lem/io.lua
+++ b/lem/io.lua
@@ -76,6 +76,10 @@ do
return stdout:write(...)
end
+ function io.print(...)
+ return stdout:print(...)
+ end
+
function io.close(file)
if not file then file = stdout end
return file:close()