Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Creatore di Cartelle - FoxOS")
- print("")
- print("[Y] Per creare una cartella\n[N] Per uscire")
- local event, key = os.pullEvent("key")
- local tasto = keys.getName(key)
- if tasto == "y" then
- print("\nInserisci il nome della cartella da creare")
- local nome = read()
- shell.run("mkdir "..nome)
- shell.run(".FoxOS/.menu")
- else
- shell.run(".FoxOS/.menu")
- end
Advertisement
Add Comment
Please, Sign In to add comment