Difference between revisions of "Os.reboot"

From ComputerCraft Wiki
Jump to: navigation, search
m (Fixed/Expnaded)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=os.reboot
 
|name=os.reboot
|returns=None
+
|returns={{type|nil}}
|api=os
+
|api=OS
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Restarts the computer
+
|desc=Reboots the [[Computer]], [[Turtle]] or [[Pocket Computer]].
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Restart
+
|desc=Restarts the computer.
|code=os.reboot()
+
|code='''os.reboot()'''
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Latest revision as of 22:50, 3 June 2014


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

Examples

Grid paper.png  Example
Restarts the computer.
Code
os.reboot()