PeachGaming

Untitled

Oct 2nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. local function centerTextXY(text)
  2. local w, h = term.getSize()
  3. term.setCursorPos(math.floor(w / 2 - text:len() / 2 + .5), math.floor(h / 2 + .5))
  4. io.write(text)
  5. end
Add Comment
Please, Sign In to add comment