MarsP4ste

wip--program

Jun 19th, 2021 (edited)
1,052
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local term = require("term")
  2. local gpu = term.gpu()
  3. local dBack = 0xcf8013
  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. clearScreen()
  21.  
  22. local t1 = "This part is still under developement"
  23. local l1 = string.len(t1)/2
  24.  
  25. setCursor(sizeX/2-l1,sizeY/2)
  26. print(t1)
  27.  
  28. os.sleep(2)
  29. os.execute("reboot")
RAW Paste Data