Difference between revisions of "Shell.exit"

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

Revision as of 23:55, 2 July 2012


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

Examples

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