diff options
author | ubq323 <ubq323@ubq323.website> | 2022-08-06 23:35:53 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-08-06 23:35:53 +0100 |
commit | 13d98909bf395c28a7035136e97ca69a4af4dac4 (patch) | |
tree | 674a8272250cd64e58a666151096c3ed81fa1726 | |
parent | 7b484a51b39469131efed30b30cbeebcda6e0db7 (diff) |
img
-rw-r--r-- | img/driver.lua | 2 |
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 |