Difference between revisions of "Hardcoded Events"
From ComputerCraft Wiki
(Undo revision 1966 by 91.121.27.33 (talk)) |
|||
Line 12: | Line 12: | ||
|} | |} | ||
− | 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. | + | 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.pullEventRaw]]. |
Revision as of 18:08, 16 July 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.pullEventRaw.