diff options
-rw-r--r-- | john.lua | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,16 +14,18 @@ if monitors == nil or #monitors < 1 then error("need john.monitors setting") end +fb:ppm(fs.open("img/john.pnm","rb")) +local xoffs = 0 + for ix,iname in ipairs(monitors) do print("doing",ix,iname) local mon = peripheral.wrap(iname) mon.clear() mon.setTextScale(0.5) - fb:clear() - fb:ppm(fs.open("img/john.pnm","rb")) local t = term.redirect(mon) - local _, bee = pcall(function() fb:present(30,0) end) + local _, bee = pcall(function() fb:present(xoffs,0) end) term.redirect(t) + xoffs = xoffs + (mon.getSize())*2 + 8 print(bee) end |