Difference between revisions of "Os.shutdown"

From ComputerCraft Wiki
Jump to: navigation, search
m (Updated references from "os" to "OS")
m (Someone dun bungled the example... no idea how.)
Line 8: Line 8:
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=shut Down
+
|desc=Shut down the computer
 
|code=os.shutdown()
 
|code=os.shutdown()
 +
|output=The computer powers off.
 
}}
 
}}
 
+
|notes=
 
+
Alternatively, you could hold {{Keypress|key=CTRL}} + {{Keypress|key=S}} for one second to shutdown the [[Computer]] outside of a program.
Alternatively you could hold ctrl + S for one second to shutdown the computer outside of a program.
+
 
}}
 
}}
  
 
[[Category:Lua_Core_Functions]]
 
[[Category:Lua_Core_Functions]]

Revision as of 09:26, 3 December 2012


Grid Redstone.png  Function os.shutdown
Shuts down the computer
Syntax os.shutdown()
Returns None
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Shut down the computer
Code
os.shutdown()
Output The computer powers off.

Additional Notes

Alternatively, you could hold CTRL + S for one second to shutdown the Computer outside of a program.