353 posts
Location
Orewa, New Zealand
Posted 15 June 2014 - 08:46 AM
I would like to be able to call a shell up in my program… ive seen Operating systems on the forum do this before, how would i and if possible is it possible for lets say if i type "exit()" in it it will return to the program?
570 posts
Posted 15 June 2014 - 10:27 AM
Not sure if this is what you mean but:
shell.run("shell")
This will run a second shell that will return to your program when it's exited.
However, keep in mind that shell.run will pause your program (unless you're using coroutines) until the other program is finished and all of the changes the program made to the screen will stay even when your program has control again. So if you've got a GUI, you should re-render it after shell.run.
7083 posts
Location
Tasmania (AU)
Posted 15 June 2014 - 10:35 AM
Under ComputerCraft 1.6 onwards, advanced systems have also got the option of
shell.openTab().