Advertisement
leo1553

BlueScreen PC

Apr 5th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mSize = 51
  2. local mLines = 19
  3.  
  4. function WriteCenter(line, text)
  5.     term.setCursorPos(1 + (mSize - string.len(text)) / 2, line)
  6.     term.write(text)
  7. end
  8.  
  9. function Write(line, position, text)
  10.     term.setCursorPos(position, line)
  11.     term.write(text)
  12. end
  13.  
  14. function ResetColor()
  15.     term.setBackgroundColor(colors.blue)
  16.     term.setTextColor(colors.white)
  17. end
  18.  
  19. -- Clear
  20. ResetColor()
  21. term.clear()
  22. term.setCursorPos(1, 1)
  23.  
  24. -- Draw
  25. term.setBackgroundColor(colors.lightGray)
  26. term.setTextColor(colors.blue)
  27. WriteCenter(5, " CraftOS ")
  28.  
  29. ResetColor()
  30. Write(7, 2, "An error has ocurred. To continue:")
  31. Write(9, 2, "Press CTRL+R to restart your computer. If you do")
  32. Write(10, 2, "this, you will lose any unsaved information in")
  33. Write(11, 2, "all open applications.")
  34. Write(13, 2, "Error: 0E : 016F : HU3HU3BR")
  35. WriteCenter(15,"Press any key to continue_")
  36.  
  37. os.pullEvent("key")
  38. term.setTextColor(colors.yellow)
  39. term.setBackgroundColor(colors.black)
  40. term.clear()
  41. sleep(1)
  42. term.setCursorPos(1, 1)
  43. print("CraftOS 1.7")
  44. term.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement