This commit is contained in:
kepler155c
2018-10-24 06:52:46 -04:00
parent e45aad7ed0
commit 27f38032ca

20
apps/debug.lua Normal file
View File

@@ -0,0 +1,20 @@
local mon = device.monitor_1
mon.clear()
mon.setTextScale(.5)
_G.requireInjector(_ENV)
local Util = require('util')
mon.setCursorPos(1, 1)
local oldDebug = _G.debug
_G.debug = function(...)
local oldTerm = term.redirect(mon)
Util.print(...)
term.redirect(oldTerm)
end
pcall(read)
_G.debug = oldDebug