shell.exit

From ComputerCraft Wiki
Revision as of 17:47, 10 April 2014 by MKlegoman357 (Talk | contribs) (Expanded)

Jump to: navigation, search


Grid Redstone.png  Function shell.exit
Exits the current program (or shell if no program is open).
Syntax shell.exit()
Returns None
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Exits the program.
Code
print("Prepare for program termination...")
sleep(3)
shell.exit()