Advertisement
Guest User

wip.lua

a guest
Jun 19th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local term = require("term")
  2. local gpu = term.gpu()
  3.  
  4. local sizeX, sizeY = term.getViewport()
  5.  
  6. function clearScreen()
  7.   setBack(dBack)
  8.   term.clear()
  9.   setCursor(1,1)
  10. end
  11.  
  12. function setCursor(x,y)
  13.   term.setCursor(x,y)
  14. end
  15.  
  16. function setBack(color)
  17.   gpu.setBackground(color, false)
  18. end
  19.  
  20. setBack(0xcf8013)
  21. clearScreen()
  22.  
  23. local t1 = "This part is still under developement"
  24. local l1 = string.len(t1)/2
  25.  
  26. setCursor(sizeX/2-l1,siizeY/2)
  27. print(t1)
  28. os.sleep(4)
  29. os.execute("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement