Update sPhone.lua
This commit is contained in:
parent
cb2c1fb692
commit
cb4395bd85
1 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue