Difference between revisions of "Hardcoded Events"

From ComputerCraft Wiki
Jump to: navigation, search
(Undo revision 1832 by 37.59.80.67 (talk))
m (Spared some TLC and formatted properly-ish.)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
There are two hard-coded commands in ComputerCraft. To use these commands, you must hold down the appropriate key combination for at least 1 second.
+
There are two hard-coded key combinations in ComputerCraft which cannot be overridden or disabled by the [[Computer]], [[Advanced Computer]] or [[Turtle]]. To use these key combinations, you must hold down the appropriate key combination for at least 1 second.
  
 
{| border="1" cellpadding="2" cellspacing="0"
 
{| border="1" cellpadding="2" cellspacing="0"
Line 5: Line 5:
 
!style="background:#EEE" width="*"|Usage
 
!style="background:#EEE" width="*"|Usage
 
|-
 
|-
|CTRL + R
+
|{{Keypress|key=CTRL}} + {{Keypress|key=S}}
|Reboots the console.
+
|Forcefully shuts down the [[Computer]], [[Advanced Computer]] or [[Turtle]].
 
|-
 
|-
|CTRL + S
+
|{{Keypress|key=CTRL}} + {{Keypress|key=R}}
|Forcefully shuts down the computer.
+
|Reboots the [[Computer]], [[Advanced Computer]] or [[Turtle]].
 
|}
 
|}
  
There is no way to override these commands. There is also another commonly used command, Ctrl+T to close the current program, but this is not hard-coded. To override this command, use [[Os#pullEvent|os.pullEvent]].
+
[[Category:Lists]]

Latest revision as of 17:00, 20 December 2012

There are two hard-coded key combinations in ComputerCraft which cannot be overridden or disabled by the Computer, Advanced Computer or Turtle. To use these key combinations, you must hold down the appropriate key combination for at least 1 second.

Shortcut Usage

CTRL + S

Forcefully shuts down the Computer, Advanced Computer or Turtle.

CTRL + R

Reboots the Computer, Advanced Computer or Turtle.