Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function centerText(text)
- local w, h = term.getSize()
- term.setCursorPos((w - #text) / 2, 2)
- write(text)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement