Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("[|]--------------[|]--------------------------[|]")
- print(" |1:Update Notes | |")
- print(" |----------------| |")
- print(" |2:Alarm | |")
- print(" |----------------| |")
- print(" |3:Cookie | |")
- print(" |----------------| |")
- print(" |4:Log Out | |")
- print(" |----------------| |")
- print(" |5:Shutdown | |")
- print(" |----------------| |")
- print(" |0:Next Page | |")
- print("[|]--------------[|] |")
- print(" | |")
- print(" | |")
- print(" | |")
- print("[|]-------------------------------------------[|]")
- event,key = os.pullEvent("char")
- if key == "1" then
- shell.run("Vinex/Note")
- break
- elseif key == "2" then
- shell.run("Vinex/Alarm")
- break
- elseif key == "3" then
- shell.run("Vinex/Cookie")
- break
- elseif key == "4" then
- os.reboot(true)
- elseif key == "5" then
- os.shutdown(true)
- elseif key == "0" then
- sleep(0.3)
- shell.run("Vinex/GUI2")
- break
- else
- term.setCursorPos(3,14)
- print("You pressed an invalid option")
- sleep(3)
- end
- end
Add Comment
Please, Sign In to add comment