os.shutdown
From ComputerCraft Wiki
Revision as of 09:26, 3 December 2012 by AfterLifeLochie (Talk | contribs) (Someone dun bungled the example... no idea how.)
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.