function Fond()
dest = net.loadIMG("1020","GPnet/fond",3)
fond = paintutils.loadImage(dest)
paintutils.drawImage(fond,1,4)
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
end

function pos(texte)
X = 51 / 2 - string.len(texte) / 2
return X
end

Fond()
texte = "Telechargement du fichier de test..."
term.setCursorPos(pos(texte),11)
print(texte)
net.downloadFile("1020","srv/testdl","downloadedfile",60)
texte = "Termine !"
term.setCursorPos(pos(texte),12)
print(texte)

return 0
