I attempted to fix this by overriding coroutine.yield to handle the termination. It works however I'm using error and it seems to not be exactly liking my use of error as that just shut downs the turtle.
local oldPull = coroutine.yield
function coroutine.yield( sFilter )
local eventData = { oldPull(sFilter) }
if eventData[1] == "terminate" then
logger.close()
error("Terminated",0)
end
return unpack( eventData )
end
My coroutine.yield overrider.Is there any way for me to successfully exit a program, without actually killing the computer? (In this function, I know that error works normally, and I'd rather not use shell.run("shell"))
Edited by Dragon53535, 30 November 2014 - 10:06 PM.












