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

Rednet on a Monitor

Started by Marra1996, 10 June 2012 - 10:10 AM
Marra1996 #1
Posted 10 June 2012 - 12:10 PM
here a little n00b question:
How can i make a script which outputs everything that comes in via rednet on a monitor
the current script is

for i=1, 100, do
rednet.receive()
print (message)
end



or something, i dont really remember.
what is the right way to change the script?
MysticT #2
Posted 10 June 2012 - 03:02 PM
You need to redirect the terminal output to the monitor, like this:

local mon = peripheral.wrap("<side>") -- change <side> to the side of the monitor
term.redirect(mon) -- redirect output to the monitor
-- code here
term.restore() -- restore output to the terminal