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

Help With Monitor !

Started by matamatama, 19 March 2012 - 11:02 PM
matamatama #1
Posted 20 March 2012 - 12:02 AM
Hello everyone, please tell me how can i program the monitor ?

Thanks !

And, if possible, how to program turtles =)

Thanks again ! XOXO
ParANormaL #2
Posted 20 March 2012 - 03:20 PM
Hey matamatama,

I can't say you how to program a monitor, but if you download this http://www.computerc...redworks-addon/ you can just type:

monitor
and it will say you what to do :D/>/>

e.g.:

create a program with this code(i called it count):

x = 0
while true do
print(x)
x = x + 1
sleep(1)
end

then type in the computer:


monitor right count
(right could be top, left, back, etc as well)
and the monitor starts to count :)/>/>

hope this helps

//edit: http://computercraft...title=Tutorials at the bottom of the page you find turtle tutorials :)/>/>
Casper7526 #3
Posted 20 March 2012 - 03:41 PM
You don't need redworks to use monitor, thats part of default cc.


monitor <side> <program>
ParANormaL #4
Posted 20 March 2012 - 03:47 PM
My fault, sry. I tried it too, but the only solution I found was redworks.
Dirkus7 #5
Posted 25 March 2012 - 11:35 PM
If i remembered correctly it should be like this:
monitor = peripheral.wrap(side)
term.redirect(monitor)

And you can use print(text) to print on the monitor
To restore to your terminal screen use:
term.restore()