Difference between revisions of "Shell.exit"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) m (Expanded) |
m (correction of sleep link) |
||
| Line 10: | Line 10: | ||
|desc=Exits the program. | |desc=Exits the program. | ||
|code= [[print]]("Prepare for program termination...") | |code= [[print]]("Prepare for program termination...") | ||
| − | [[sleep]](3) | + | [[Os.sleep|sleep]](3) |
'''shell.exit()''' | '''shell.exit()''' | ||
}} | }} | ||
Revision as of 20:29, 16 April 2014
| 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() |