Difference between revisions of "Shell.exit"

From ComputerCraft Wiki
Jump to: navigation, search
(Change to standard function formatting)
Line 1: Line 1:
equivalent to os.shutdown()
+
{{lowercase}}
 +
{{Function
 +
|name=shell.exit
 +
|returns=Text written on the screen
 +
|api=term
 +
|addon=ComputerCraft
 +
|desc=Writes to the screen
 +
|examples=
 +
{{Example
 +
|desc=Exit the current program (or shell if no program is open)
 +
|code=shell.exit()
 +
}}
 +
}}

Revision as of 23:55, 2 July 2012


Grid Redstone.png  Function shell.exit
Writes to the screen
Syntax shell.exit()
Returns Text written on the screen
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Exit the current program (or shell if no program is open)
Code
shell.exit()