Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w,h = term.getSize()
- function printCentered (y,s)
- local x = math.floor((w - string.len(s)) / 2)
- term.setCursorPos(x , y)
- term.clearLine()
- term.write(s)
- end
- printCentered(math.floor(h/2) - 2, "Screens")
Add Comment
Please, Sign In to add comment