using global variables for this, in hopes of it will be working
function center (text) x, y = mon.getSize() x1, y1 = mon.getCursorPos() mon.setCursorPos((math.floor(x/2) - (math.floor(#text/2))+1), y1) mon.write(text) mon.setCursorPos(x1,y1+1) end function space() y1=y1+1 end











