Advertisement
rithrin

ced

Aug 3rd, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function printCentered(text)
  2. w, h = term.getSize()
  3. x, y = term.getCursorPos()
  4. x = math.max(math.floor((w / 2) - (#text / 2)), y)
  5. term.setCursorPos(x,y)
  6. print("I dont Hate you rithrin.")
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement