Posted 17 December 2013 - 11:53 PM
i need to know if there is way that i can write something on a monitor the go down a line so here is the code i am working with
mon = peripheral.wrap("right")
rednet.open("left") --open to the internet
pass="test"
function listen()
while true do
ID, message = rednet.receive()
if ID == 12 then
if message == pass then
rednet.send(12, "Accepted")
mon.print("--------------------------------------------------")
mon.print(ID..": entered correct password")
mon.print("--------------------------------------------------")
else
rednet.send(12, "Wrong")
mon.write("--------------------------------------------------")
mon.write(ID..": entered wrong password"..message)
mon.write("--------------------------------------------------")
end
end
end
end
listen()
the problem is it doesn't move down a line