Posted 25 May 2012 - 09:46 PM
What strings are interpreted as a side with the "side" function?
term.redirect(peripheral.wrap("side")) -- change "side" to the side of the monitor
-- print stuff
term.restore() -- restores the output to the console
term.redirect(peripheral.wrap("right"))
print("Hello World!")
term.restore()
print("Take a look at the monitor please.")
term.redirect(peripheral.wrap("right"))
print("Hello World!")
term.restore()
print("Take a look at the monitor please.")
term.redirect("right")
print("Hello World!")
sleep(3) -- Leaves text on the monitor for three seconds
term.restore()
print("Take a look at the monitor please.")
Nope, this is not needed. Did you note the sides are defined when standing in front of it? If you stand behind the computer, left and right is reversed. If that's not the problem, we might see it when you put your code here.From what i know using monitors, this codeterm.redirect(peripheral.wrap("right")) print("Hello World!") term.restore() print("Take a look at the monitor please.")
Should actually be this codeterm.redirect("right") print("Hello World!") sleep(3) -- Leaves text on the monitor for three seconds term.restore() print("Take a look at the monitor please.")