Difference between revisions of "Hardcoded Events"
From ComputerCraft Wiki
m (NeedsWork (merge?)) |
m (Updated "os" -> "OS") |
||
Line 14: | Line 14: | ||
|} | |} | ||
− | 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 [[ | + | 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]] | [[Category:Lists]] |
Revision as of 14:10, 30 November 2012
This page needs some serious TLC, stat! Please help us by cleaning it, fixing it up, or sparing it some love.
(Reason: Perhaps this should be merged somewhere? AfterLifeLochie 02:41, 29 November 2012 (MSK)) |
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.