Difference between revisions of "Hardcoded Events"
From ComputerCraft Wiki
(anh chau Ta voi nhau xem nap) |
(Undo revision 1832 by 37.59.80.67 (talk)) |
||
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. | |
+ | |||
+ | {| border="1" cellpadding="2" cellspacing="0" | ||
+ | !style="background:#EEE" width="200px"|Shortcut | ||
+ | !style="background:#EEE" width="*"|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|os.pullEvent]]. |
Revision as of 16:00, 24 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.