This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Exerro's profile picture

[question] Running a program above the shell

Started by Exerro, 20 March 2013 - 06:40 AM
Exerro #1
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?
Noodle #2
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..
Noodle #3
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.
theoriginalbit #4
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