Advertisement
Guest User

minitel

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. term.setTextColor( colors.white )
  5. end
  6.  
  7. clear()
  8. print("Inserire URL")
  9. local url = read()
  10. while true do
  11. clear()
  12. local sExample = http.get("http://172.16.20.218/luanet/"..url..".lua") --Get contents of page
  13. loadstring(sExample.readAll())()
  14. sExample.close() --Just in case
  15. term.setTextColor(colors.white)
  16. term.setCursorPos(1, 18)
  17. term.write("URL: ")
  18. term.setCursorPos(1, 18)
  19. local url = read()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement