summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
Diffstat (limited to 'img')
-rw-r--r--img/driver.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/img/driver.lua b/img/driver.lua
index 16aa671..c406648 100644
--- a/img/driver.lua
+++ b/img/driver.lua
@@ -1,6 +1,7 @@
package.path = "/?;/?.lua;"..package.path
_G.ERRLOG = {}
+_G.oldprint = _G.print
_G.print = function(...)
o = {}
for ix = 1,select('#',...) do
@@ -8,6 +9,7 @@ _G.print = function(...)
end
table.insert(_G.ERRLOG,table.concat(o,"\t"))
end
+_G.rpr = function() _G.print = _G.oldprint end
print("uu")
local load_pnm = require("load_pnm").load