Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local function Type(text)
- term.clearLine()
- print(text)
- end
- function Loop()
- Type("Error Has Occured")
- Type("Options")
- Type("1 - Return to Menu")
- Type("2 - Reboot")
- Type("3 - Remove Error =WIP=")
- Type("4 - shutdown")
- local event, key
- repeat
- event, key = os.pullEvent("key")
- until key == keys.one or key == keys.two or key == keys.three or key == keys.four
- if key == keys.one then
- shell.run(settings.get("os_DesktopLoc"))
- elseif key == keys.two then
- shell.run("os/System/Scripts/PowerOff.lua","restart")
- elseif key == keys.three then
- shell.run("os/System/Scripts/PowerOff.lua", "shutdown")
- elseif key == keys.four then
- shell.run("os/System/Scripts/PowerOff.lua", "shutdown")
- end
- Loop()
- end
- Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement