This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KronixGames's profile picture

Wallpaper - by Rednet works

Started by KronixGames, 06 September 2012 - 07:52 PM
KronixGames #1
Posted 06 September 2012 - 09:52 PM
hello again peoples, i am here today to show to you the rednet Wallpaper, ooohh yes, now you can let you console in waiting mode, it asked to you what you want print on your screen, and now it stay until you press CTRL-T. Sorry for my bad english

coming soon:

*Save the text to be printed on the screen


Thanks Imgoodisher and Noodle by the correction of "term.setCursorPos ()".
The Pastebin archive too was modified.
Now works too in monitors.

download: http://pastebin.com/edZ1967q

or

copy:

print("What you want that show on your Wallpaper?")
write(": ")
pt = read()
term.clear()
termx, termy = term.getSize()
while true do
print(pt)
sleep(1.5)
term.setCursorPos(math.random(termx - string.len(pt)), math.random(termy - 1))
end

thank you to choose Rednet Works !!
by Matheuscat12
Imgoodisher #2
Posted 07 September 2012 - 12:16 AM
there's an easier way to do this…

print("What you want that show on your Wallpaper?")
write(": ")
pt = read()
term.clear()
termx, termy = term.getSize()
while true do
print(pt)
sleep(1.5)
term.setCursorPos(math.random(termx), math.random(termy))
end
Noodle #3
Posted 07 September 2012 - 02:06 AM
there's an easier way to do this…

print("What you want that show on your Wallpaper?")
write(": ")
pt = read()
term.clear()
termx, termy = term.getSize()
while true do
print(pt)
sleep(1.5)
term.setCursorPos(math.random(termx), math.random(termy))
end
But then it would print off screen.
Do
term.setCursorPos(math.random(termx - string.len(pt)), math.random(termy - 1)) -- Because it prints and it would be annoying at the bottom of the screen.