diff --git a/src/bin/halt.lua b/src/bin/halt.lua new file mode 100644 index 0000000..2b85b4c --- /dev/null +++ b/src/bin/halt.lua @@ -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