797 posts
Posted 20 March 2013 - 07:40 AM
I have been trying to make a coroutine that injects itself above the shell so even if the shell stops my coroutine/function will still be running. Is this possible without modifying the bios, and if so how can I do it?
864 posts
Location
Sometime.
Posted 20 March 2013 - 07:50 AM
When you do shell.run it runs on top of what is currently running so..
I don't think there's a way
Try this in startup
function topofshell()
shell.run("BLAH")
end
function shell()
shell.run("shell")
end
coroutine.create(topofshell)
I really don't know what it would be..
864 posts
Location
Sometime.
Posted 20 March 2013 - 07:53 AM
What you're talking about is crazy..
Just make a startup that runs a loop..
EDIT: Technically if you were to kill the shell, you kill everything that is running.
7508 posts
Location
Australia
Posted 20 March 2013 - 08:03 AM
Lets see if i can find that topic from a few months ago………. oh here it is
Top Level Coroutine Override