Create halt.lua
This commit is contained in:
parent
24c6a6adc0
commit
7159eb184f
1 changed files with 11 additions and 0 deletions
11
src/bin/halt.lua
Normal file
11
src/bin/halt.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
term.setBackgroundColor(colors.black)
|
||||||
|
term.setTextColor(colors.white)
|
||||||
|
term.setCursorBlink(true)
|
||||||
|
print("System halted")
|
||||||
|
function _G.os.pullEventRaw()
|
||||||
|
while true do
|
||||||
|
coroutine.yield("haltSystem")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
_G.os.pullEvent = os.pullEventRaw
|
Loading…
Reference in a new issue