FoxOS

home

Feb 8th, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw()
  2. if fs.exists("web/") == "false" then
  3.    shell.run("mkdir web")
  4. end
  5. term.setBackgroundColor(colors.blue)
  6. term.clear()
  7. term.setCursorPos(1, 1)
  8. term.setTextColor(colors.yellow)
  9. print("it://home")
  10. term.setTextColor(colors.orange)
  11. print("\n\nBenvenuto nella nuova rete IT!\n\n[N] Per navigare su IT\n[A] Per aggiornare i Siti\n[C] Per controllare se si è in rete")
  12. local event, key = os.pullEvent("key")
  13. local tasto = kyes.getName(key)
  14. if tasto == "n" then
  15.    shell.run("navigate")
  16. elseif tasto == "a" then
  17.    shell.run("update")
  18. elseif tasto == "c" then
  19.    shell.run("ctrl")
  20. else
  21.    shell.run("404")
  22. end
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment