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

Program needed for monitor

Started by Pwrocks5648, 27 October 2012 - 10:41 PM
Pwrocks5648 #1
Posted 28 October 2012 - 12:41 AM
Hey Im wondering if its possible to make a program that shows everything on the screen so then i dont have to remake my intire program, Is it possible? if it is can i plz have the code for it? :D/>/> thanks in advance
Orwell #2
Posted 28 October 2012 - 12:43 AM
Try the monitor program, usage is:

monitor <side> <program> [<parameters>]
Pwrocks5648 #3
Posted 28 October 2012 - 12:48 AM
yes but i want it to atuomatically come on at startup….. btw i know about the monitor program…… i even tried shell.run("monitor front Program") but it said it didnt exist
Luanub #4
Posted 28 October 2012 - 12:52 AM
need " and , to separate the arguements


shell.run("monitor","front","programName")

Or you can also just add this to the start of your program

local monitor = peripheral.wrap("monitorSide")
term.redirect(monitor)
Edited on 27 October 2012 - 10:56 PM
Pwrocks5648 #5
Posted 28 October 2012 - 12:54 AM
Ok tks ill try this now