os.shutdown
From ComputerCraft Wiki
Function os.shutdown | |
Turns off the Computer, Turtle or Pocket Computer. | |
Syntax | os.shutdown() |
Returns | nil |
Part of | ComputerCraft |
API | OS |
Examples
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.