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

Activate monitor from program?

Started by niels22, 07 July 2012 - 12:16 PM
niels22 #1
Posted 07 July 2012 - 02:16 PM
Hello there.

I'm wondering if it's possible to turn a monitor on in middle of a program.
I need to write something on a monitor, but I also need the player to use the computer itself.
KevinW1998 #2
Posted 07 July 2012 - 02:44 PM

yourmonitor = peripheral.wrap(yourside) -- Yourside is the side of your monitor
term.redirect(yourmonitor)
-- Your code like print or term.write()
term.restore() -- Back to the main computer screen
niels22 #3
Posted 07 July 2012 - 03:18 PM

yourmonitor = peripheral.wrap(yourside) -- Yourside is the side of your monitor
term.redirect(yourmonitor)
-- Your code like print or term.write()
term.restore() -- Back to the main computer screen

Thanks man :P/>/>