(thanks to
Coryf88
)
local nativeTerm = term.native or term local function invoke(sMethod, ...) nativeTerm[sMethod](...) for k,sSide in pairs(redstone.getSides()) do if peripheral.isPresent(sSide) and peripheral.getType(sSide) == "monitor" then peripheral.call(sSide, sMethod, ...) end end end term.write = function(text) invoke("write", text) end term.scroll = function(n) invoke("scroll", n) end term.setCursorPos = function(x, y) invoke("setCursorPos", x, y) end term.setCursorBlink = function(:o/>/> invoke("setCursorBlink", :o/>/> end term.clear = function() invoke("clear") end term.clearLine = function() invoke("clearLine") end nativeTerm.clear() nativeTerm.setCursorPos(1, 1) print(os.version())
If you put a monitor on the right and run this program, you can use the monitor and see it on your computer screen.