Posted 19 December 2013 - 12:47 PM
I was wondering if it was possible to be able to be doing one thing on a computer and have tides play on a monitor so other people can see what you are doing
ok thank you very much :)/>Look around the forums. This has been posted innumerable times. I think at least one was called "mirror API", there are several others.
local mon = peripheral.wrap("<Monitor Side")
oldTermWrite = oldTermWrite or term.write
term.write = function( text )
oldTermWrite( text )
mon.write( text )
end
oldCursorPos = oldCursorPos or term.setCursorPos
term.setCursorPos = function( x, y )
oldCursorPos( x, y )
mon.setCursorPos( x, y )
end
oldClear = oldClear or term.clear
term.clear = function()
oldClear()
mon.clear()
end
oldBlink = oldBlink or term.setCursorBlink
term.setCursorBlink = function( boolean )
oldBlink( boolean )
mon.setCursorBlink( boolean )
end
local screens = {"monitor_1", "monitor_0"}
for i=1, #screens do
local curScreen = peripheral.wrap(screens[i])
term.redirect(curScreen)
--[[Todo here]]
end
term.restore()
Can someone confirm this code?