sPhone/src/sPhone.lua

34 lines
503 B
Lua
Raw Normal View History

2015-07-31 20:00:00 +02:00
_G.sPhone = {}
2015-07-31 19:52:45 +02:00
2015-07-31 19:59:52 +02:00
local function crash(err)
2015-07-31 19:52:45 +02:00
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)
2015-07-31 20:01:49 +02:00
print(" ###")
print(" # ")
print(" ###")
print(" #")
print(" ###")
2015-07-31 19:52:45 +02:00
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