Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- local w, h = term.getSize()
- -- Function for middle text
- local function printCentered(y, text, color)
- local x = math.floor((w - #text) / 2)
- term.setCursorPos(x, y)
- if color then
- term.setTextColor(color)
- else
- term.setTextColor(colors.white)
- end
- term.write(text)
- end
- -- Calculation of Vertical Mid
- local centerY = math.floor(h / 2)
- -- Name of OS
- printCentered(centerY - 2, "| OS NAME |", colors.blue)
- -- Loading Text
- printCentered(centerY, "Loading...")
- -- Progress bar
- sleep(1)
- term.setCursorPos(math.floor((w - 10) / 2), centerY + 2)
- textutils.slowPrint("##########")
- sleep(1)
- -- Start Menu
- shell.run(".menu")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement