Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.call("back","clear")
- peripheral.call("back","setCursorPos",10,1)
- peripheral.call("back","write","Lethal Inc.")
- peripheral.call("back","setCursorPos",9,6)
- peripheral.call("back","write","Farms")
- peripheral.call("back","setCursorPos",17,6)
- peripheral.call("back","write","Power")
- peripheral.call("back","setCursorPos",9,8)
- peripheral.call("back","write","Storage")
- peripheral.call("back","setCursorPos",1,9)
- peripheral.call("back","write","logout")
- while true do
- event, side, x,y = os.pullEvent()
- print(event .."=> Side " .. tostring(side))
- print("X:" .. tostring(x) .. " Y: " .. tostring(y))
- if y==6 then
- shell.run("roff")
- end
- if y==7 then
- shell.run("ron")
- end
- if y==8 then
- shell.run("maintenence")
- end
- if x==17 then
- peripheral.call("back","clear")
- peripheral.call("back","setCursorPos",10,1)
- peripheral.call("back","write", "Power Management")
- sleep(5)
- shell.run("reboot")
- end
- if x == 1 and y ==1 then
- shell.run("open")
- sleep(10)
- shell.run("close")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement