colhaydutu

Untitled

Apr 21st, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local monitor = peripheral.wrap("top")
  2. local width, height = monitor.getSize()
  3.  
  4. local url = "http://internal.romanport.com:43301/?width="..width.."&height="..height
  5. local reply = http.get(url)
  6. local data = reply.readAll()
  7. reply.close()
  8.  
  9. local monitor = peripheral.wrap("top")
  10. monitor.clear()
  11. monitor.setCursorPos(1,1)
  12.  
  13. local y = 0
  14. while y < height do
  15. local d = string.sub(data, (y*width)+1)
  16. monitor.setCursorPos(1, y + 1)
  17. monitor.blit(d, d, d)
  18. y = y + 1
  19. end
Add Comment
Please, Sign In to add comment