Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local verNumber = "Alpha 1.24"
- local nOption = 1
- os.pullEvent = os.pullEventRaw
- local x = term.getSize()
- local function cPrint(string)
- x, _ = term.getSize()
- _, y = term.getCursorPos()
- term.setCursorPos((x-#string)/2,y)
- textutils.slowPrint(string)
- end
- local function kPrint(string)
- x, _ = term.getSize()
- _, y = term.getCursorPos()
- term.setCursorPos((x-#string)/2,y)
- write(string)
- end
- term.clear()
- term.setCursorPos(1,2)
- cPrint("xOS "..verNumber)
- sleep(2)
- term.setCursorPos(1,6)
- cPrint("Detecting first time setup...")
- sleep(1)
- term.setCursorPos(1,8)
- kPrint("Welcome to xOS! You have selected")
- term.setCursorPos(1,9)
- kPrint("to download the locked version")
- term.setCursorPos(1,10)
- kPrint("of this operating system.")
- term.setCursorPos(1,11)
- kPrint("To continue you will need to create")
- term.setCursorPos(1,12)
- kPrint("an account to access this system.")
- term.setCursorPos(1,15)
- kPrint("Press ENTER to continue.")
- while true do
- event, p1 = os.pullEvent()
- if event == "key" then
- if p1 == 28 then
- shell.run("xos/.addaccounts")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment