Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat
- print("\n\n\nTapez une touche pour continuer")
- io.read() <-- what is this?
- term.clear()
- print("==========Menu==========\n1) Afficher les ids des satellites\n2) Ajouter un id de satellite\n3) Quitter")
- local choice = term.read() <-- THIS should be your io.read(), not above.
- local validChoices = {"1", "2", "3"}
- if isValidChoice(choice, validChoices) then
- if choice == "1" then
- display()
- os.sleep(0.1)
- end
- end
- until choice == "3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement