Z1maV1

ncBSOD

May 14th, 2022 (edited)
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. w,h = term.getSize()
  4.  
  5. term.clear()
  6.  
  7. function printCentered(y,s)
  8.     local x = math.floor((w - string.len(s)) / 2)
  9.     term.setCursorPos(x,y)
  10.     term.clearLine()
  11.     term.write(s)
  12. end
  13.  
  14. printCentered(math.floor(h/2) - 2, "Diamond OS")
  15. printCentered(math.floor(h/2) + 0, "We find fatal error on your computer")
  16. printCentered(math.floor(h/2) + 1, "You should use color support computer")
  17. printCentered(math.floor(h/2) + 2, "to run the system. You may buy it ")
  18. printCentered(math.floor(h/2) + 3, "The computer will shutdown")
  19. printCentered(math.floor(h/2) + 4, "When you press enter")
  20. printCentered(math.floor(h/2) + 6, "Press enter to shutdown your computer")
  21. term.setCursorBlink(false)
  22.  
  23. read("")
  24.  
  25. os.shutdown()
  26.  
Advertisement
Add Comment
Please, Sign In to add comment