Advertisement
Guest User

frostapi

a guest
Sep 21st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.11 KB | None | 0 0
  1. function centerText(text)
  2.   local w, h = term.getSize()
  3.   term.setCursorPos((w - #text) / 2, 2)
  4.   write(text)
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement