Difference between revisions of "Os.shutdown"
From ComputerCraft Wiki
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= | + | |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 | + | |
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Revision as of 09:26, 3 December 2012
Function os.shutdown | |
Shuts down the computer | |
Syntax | os.shutdown() |
Returns | None |
Part of | ComputerCraft |
API | OS |
Examples
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.