Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Functions
- function printCentered(Text, Line)
- local x, y = term.getSize()
- x = x/2 - #Text/2
- term.setCursorPos(x, Line)
- if Color then
- col.set(Color, BkgColor)
- end
- term.write(Text)
- return true
- end
- function reboot()
- term.setBackgroundColor(colors.yellow)
- term.setTextColor(colors.red)
- term.clear()
- printCentered("- "..string.char(7).." % Re-Booting % "..string.char(7).." -", 5)
- sleep(2)
- os.reboot()
- end
- -- Running Functions
- reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement