SHOW:
|
|
- or go back to the newest paste.
| 1 | term.clear() | |
| 2 | term.setCursorPos(1,1) | |
| 3 | print("Creatore di Cartelle - FoxOS")
| |
| 4 | print("")
| |
| 5 | print("[Y] Per creare una cartella\n[N] Per uscire")
| |
| 6 | local event, key = os.pullEvent("key")
| |
| 7 | local tasto = keys.getName(key) | |
| 8 | if tasto == "y" then | |
| 9 | print("\nInserisci il nome della cartella da creare")
| |
| 10 | local nome = read() | |
| 11 | shell.run("mkdir "..nome)
| |
| 12 | shell.run(".FoxOS/.menu")
| |
| 13 | else | |
| 14 | shell.run(".FoxOS/.menu")
| |
| 15 | end |