summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-22 20:20:22 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-07-30 22:56:14 +0000
commit6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1 (patch)
treefcf019573bc0c6d2dc2900924603c8ef2ff1ae5c
parentf1b8384dcea10c39eff4d0f56f4adcbd707522d2 (diff)
downloadlem-6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1.tar.gz
lem-6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1.tar.xz
lem-6d3b2bfdca905ba0ef356bd6ec1f1ecdd74cfbc1.zip
override Lua print() with lem.io.print()
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
-rw-r--r--lem/io.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lem/io.lua b/lem/io.lua
index e1c5738..9972b37 100644
--- a/lem/io.lua
+++ b/lem/io.lua
@@ -79,6 +79,7 @@ do
function io.print(...)
return stdout:print(...)
end
+ _ENV.print = io.print
function io.close(file)
if not file then file = stdout end