Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitors = {peripheral.find("monitor")} -- "find" needs CC 1.6 or later
- do
- local multiTerm, oldTerm = {}, term.current()
- for funcName,_ in pairs(monitors[1]) do
- multiTerm[funcName] = function(...)
- for i=1,#monitors do monitors[i][funcName](unpack(arg)) end
- if oldTerm[funcName] then return oldTerm[funcName](unpack(arg)) end
- end
- end
- term.redirect(multiTerm)
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Hello world!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement