Create halt.lua

This commit is contained in:
Ale32bit 2016-07-01 12:30:07 +02:00 committed by GitHub
parent 24c6a6adc0
commit 7159eb184f

11
src/bin/halt.lua Normal file
View 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