Difference between revisions of "Hardcoded Events"
From ComputerCraft Wiki
m (Added to CAT:Lists & NeedsWork: Can we merge this with the os.pullEvent/Raw doc, preese? :3) |
|||
Line 1: | Line 1: | ||
+ | {{NeedsWork}} | ||
+ | |||
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 commands in ComputerCraft. To use these commands, you must hold down the appropriate key combination for at least 1 second. | ||
Line 13: | Line 15: | ||
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]]. | 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]]. | ||
+ | |||
+ | [[Category:Lists]] |
Revision as of 21:36, 28 November 2012
This page needs some serious TLC, stat! Please help us by cleaning it, fixing it up, or sparing it some love.
|
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.