Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screen = peripheral.wrap("back")
- z = 1
- function NeueZeile()
- screen.setCursorPos(z,1)
- print("Text für Zeile ", z ," eingeben:")
- t = io.read()
- print("Farbe für Zeile ", z ," auswählen:")
- screen.setTextColor("colors."..io.read())
- print("Schriftgrösse für Zeile ", z ," eingeben (0.5-5):")
- screen.setTextScale(io.read())
- screen.print(t)
- z = z + 1
- WeitereZeile()
- end
- function WeitereZeile()
- print("Weitere Zeile? (j/n)")
- if io.read == "j" then
- FSbeibehalten()
- elseif io.read == "n" then
- z = 1
- t = null
- print("Text erfolgreich übernommen!")
- os.sleep(5)
- shell.run('clear')
- else
- shell.run('clear')
- WeitereZeile()
- end
- end
- function FSbeibehalten()
- print("Farbe und Schriftgrösse beibehalten? (j/n)")
- if io.read == "n" then
- NeueZeile()
- elseif io.read == "j" then
- print("Text für Zeile ", z ," eingeben:")
- t = io.read()
- screen.print(t)
- z = z + 1
- NeueZeile()
- else
- shell.run('clear')
- FSbeibehalten()
- end
- end
- NeueZeile()
Advertisement
Add Comment
Please, Sign In to add comment