Difference between revisions of "Hardcoded Events"
From ComputerCraft Wiki
m (moved Hardcode to Hardcoded Events: Disambiguous title) |
m |
||
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 | + | 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. |
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" |
Revision as of 16:00, 3 June 2012
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.
Shortcut | Usage |
---|---|
CTRL + R | Reboots the console. |
CTRL + S | Forcefully shuts down the computer. |
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.