Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printCentered(text)
- w, h = term.getSize()
- x, y = term.getCursorPos()
- x = math.max(math.floor((w / 2) - (#text / 2)), y)
- term.setCursorPos(x,y)
- print("I dont Hate you rithrin.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement