Posted 05 April 2013 - 11:08 AM
It doesn't print it in the middle, it prints to the side. What am I doing wrong?
function cPrint(message)
local blarghx, blarghy = term.getCursorPos()
local termX, termY = term.getSize()
term.setCursorPos(termX/2 - #message, blarghy)
print(message)
end