Update sPhone.lua

This commit is contained in:
Ale2610 2015-07-31 19:52:45 +02:00
parent cb2c1fb692
commit cb4395bd85

View file

@ -1 +1,35 @@
sPhone = {}
local function sPhone.crash(err)
os.pullEvent = os.pullEventRaw
if not err then
err = "Unknown"
end
term.setBackgroundColor(colors.black)
term.clear()
term.setCursorPos(1,2)
term.setTextColor(colors.white)
print(
" ###",
" # ",
" ###",
" #",
" ###",
)
print("")
print("sPhone crash: ")
print(err)
while true do
sleep(3600)
end
end
function kernel()
end
local ok, err = pcall(kernel)
if not ok then
sPhone.crash(err)
end