Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- --Welcoming!
- --y = 10 x = 26
- local localVersion = "0.1"
- local function centerText(text)
- local x,y = term.getSize()
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- write(text)
- end
- local function clearScreen()
- term.clear()
- term.setCursorPos(1,10)
- end
- local function animation()
- centerText("Welcome to")
- sleep(3)
- clearScreen()
- term.setCursorPos(22,10)
- print("austin")
- sleep(1)
- term.setTextColor(colors.yellow)
- term.setCursorPos(28,10)
- print("OS")
- term.setTextColor(colors.white)
- sleep(3)
- end
- clearScreen()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- centerText("Press 'enter' to login")
- local _, check = os.pullEvent("key")
- if check == 28 then
- animation()
- clearScreen()
- term.setCursorPos(1,1)
- shell.run("austinOS-Core")
- else
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement