--[[
I want to again wish you a merry christmas
even though you probably read this after
christmas day :)
I hope that you enjoy this gift.
I'd like to thank you for accepting me onto
this server! Not just for white listing me,
but for being friendly and kind.
It has really made me want to come back and
be a regular player on this server. :D
]]-- code is below
-- This just prints out a small message.
-- Nothing fancy
-- Size of screen
local w,h = term.getSize()
-- Get rid of the "CraftOS 1.6"
term.clear()
-- The message itself
local msg = {
"------[ Merry Christmas Hockey! ]------",
"",
"I gift you this present, containing",
"a card and the turtle computer holding",
"the card.",
"",
"If you like programming or would like",
"to start with it, then this turtle is",
"a great start!",
"",
"Other than that, have a wonderful day!",
"",
"--[ Press a key to return to shell ]--",
}
-- Loop the message rows
for row = 1,#msg do
-- Center the text on each line
local x = math.floor(w/2 - #msg[row]/2)+1
-- Write it out
term.setCursorPos(x,row)
term.write(msg[row])
end
-- Wait for keyboard input
os.pullEvent("key")
sleep(0)
-- Empty screen and make it look like
-- the computer just booted
term.clear()
term.setCursorPos(1,1)
print(os.version())
-- EOF
Comments