os.shutdown

From ComputerCraft Wiki
Revision as of 22:49, 3 June 2014 by MKlegoman357 (Talk | contribs) (Fixed/Expanded)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function os.shutdown
Turns off the Computer, Turtle or Pocket Computer.
Syntax os.shutdown()
Returns nil
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Shutdowns the computer.
Code
os.shutdown()

Additional Notes

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