Update sPhone.lua

This commit is contained in:
Ale32bit 2015-11-10 16:28:54 +01:00
parent 839595bc1b
commit 66ee9fc95e

View file

@ -7,19 +7,24 @@ local function crash(err)
} }
end end
term.setCursorBlink(false) term.setCursorBlink(false)
term.setBackgroundColor(colors.blue) term.setBackgroundColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
term.setTextColor(colors.white) term.setTextColor(colors.black)
if not err then if not err then
err = "Unknown" err = "Undefined Error"
end end
print("sPhone Crash:\n") print("sPhone got an error :(\n")
term.setBackgroundColor(colors.black) term.setTextColor(colors.red)
printError(err) print(err)
term.setBackgroundColor(colors.blue) term.setTextColor(colors.black)
if sPhone.version then
print("sPhone version: "..sPhone.version)
end
print("Computer ID: "..os.getComputerID())
print("\nContact sPhone devs: GitHub: Sertex-Team/sPhone") print("\nContact sPhone devs: GitHub: Sertex-Team/sPhone")
print("Thanks for using sPhone")
print("Press any key") print("Press any key")
repeat repeat
sleep(0) sleep(0)
@ -888,4 +893,4 @@ if not ok then
crash(error) crash(error)
end end
crash("Something went wrong.../nNo free hugs for you") crash("Something went wrong...")