print <text you want to print>
I'll show you how it works.
text = tArgs[1] -- text is the 1st argument
w,h = term.getSize() -- W is the term's width
l = #text/2 -- l is the half part of the text's width
for i=1,l do
write(" ") --Write (l value) spaces
end
write(text)
for i=1,l do
write(" ") --(if I only put 1 space, in some cases the command input is in the same line that the printed text)
You can use it or modify it. If you download it and/or use it for any program, PM me.
pastebin get xh84rU5E print
EDIT: I saw the reply, you have reason, but that change isn't needed. Using this you can change the background color to color all the line.