print('$'..color_escape(--[[bold]]1, --[[blue]]4))
print('=>'..color_escape(0, --[[green]]2))
print('=>'..color_escape(0, --[[red]]1))
print(result)
print(reset_terminal())
Run_time_error = result
print(result)
print(reset_terminal())
if result:match('^ERROR ') then
Load_time_error = result:sub(#('ERROR '))
print(msg)
print(reset_terminal())
end
-- look for a message from outside, and return nil if there's nothing
-- if there's an error, save it and return ''
function live.receive_from_app()
local f = io.open(love.filesystem.getAppdataDirectory()..'/_love_akkartik_app_driver')
if f == nil then return nil end
local result = f:read('*a')
f:close()
if result == '' then return nil end -- empty file == no message