shell.exit
From ComputerCraft Wiki
| Exits the current program (or shell if no program is open). | |
| Syntax | shell.exit() |
| Returns | None |
| Part of | ComputerCraft |
| API | shell |
Examples
| Exits the program. | |
| Code |
print("Prepare for program termination...") sleep(3) shell.exit() |