-- Assurez-vous que le moniteur est connecté local monitor = peripheral.find("monitor") if not monitor then print("Aucun moniteur trouvé.") return end -- Définir la taille du moniteur local width, height = monitor.getSize() -- Le paysage en ASCII avec des sauts de ligne local landscape = [[ /\ /\ /\ / \ / \ / \ / \ / \ / \ /______\ /______\ /______\ /\ /\ /\ /\ /\ / \ / \ / \ / \ / \ / \ / \ / \ \ / \ /______\/______\/______\____\/______\ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~ ~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]] -- Fonction pour afficher chaque ligne du texte sur le moniteur local function displayLandscape(text) -- Découper le texte en lignes local lines = {} for line in text:gmatch("[^\r\n]+") do table.insert(lines, line) end -- Afficher chaque ligne sur le moniteur monitor.clear() for i, line in ipairs(lines) do monitor.setCursorPos(1, i) monitor.write(line) end end -- Afficher le paysage displayLandscape(landscape)