Advertisement
PolskiWisnia

XBlock2 OS

Apr 25th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. while true do
  2. os.pullEvent = os.pullEventRaw
  3. term.clear()
  4. term.setBackgroundColor(colors.blue)
  5. term.clear()
  6. term.setBackgroundColor(colors.blue)
  7. term.setCursorPos(15,7)
  8. print("Witamy w XBlock 2!")
  9. sleep(2)
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("XBlock2 v1.1")
  13. print("1. Uruchom plik z dyskietki [XBlock2]")
  14. print("2. Uruchom plik z dyskietki [XBlock1]")
  15. print("3. Wylacz system")
  16. print("4. Resetuj XBlock2")
  17. write(".>")
  18. akcja = read()
  19. if akcja=="3" then os.shutdown() end
  20. if akcja=="4" then os.reboot() end
  21. if akcja=="1" then shell.run("/disk/software") end
  22. if akcja=="2" then shell.run("/disk/start") end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement