Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mSize = 51
- local mLines = 19
- function WriteCenter(line, text)
- term.setCursorPos(1 + (mSize - string.len(text)) / 2, line)
- term.write(text)
- end
- function Write(line, position, text)
- term.setCursorPos(position, line)
- term.write(text)
- end
- function ResetColor()
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- end
- -- Clear
- ResetColor()
- term.clear()
- term.setCursorPos(1, 1)
- -- Draw
- term.setBackgroundColor(colors.lightGray)
- term.setTextColor(colors.blue)
- WriteCenter(5, " CraftOS ")
- ResetColor()
- Write(7, 2, "An error has ocurred. To continue:")
- Write(9, 2, "Press CTRL+R to restart your computer. If you do")
- Write(10, 2, "this, you will lose any unsaved information in")
- Write(11, 2, "all open applications.")
- Write(13, 2, "Error: 0E : 016F : HU3HU3BR")
- WriteCenter(15,"Press any key to continue_")
- os.pullEvent("key")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.clear()
- sleep(1)
- term.setCursorPos(1, 1)
- print("CraftOS 1.7")
- term.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement