This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lord_darkis's profile picture

{Question}

Started by lord_darkis, 06 May 2012 - 06:24 AM
lord_darkis #1
Posted 06 May 2012 - 08:24 AM
Hello, I'm trying to find a way to make a "startup" program go to a monitor. Help? Thank you.
MysticT #2
Posted 06 May 2012 - 03:41 PM
You have to wrap the monitor and then use term.redirect:

local monitor = peripheral.wrap("side") -- change side to the side of your monitor
term.redirect(monitor)
-- Your code here
term.restore()
That would make your program run on the monitor, and when it ends it restores the output to the terminal.