Posted 18 January 2013 - 12:52 PM
Hi guys, I ran into a most irksome issue yesterday and have yet to find the solution
In the shell program right by the end it locates your startup file and runs it, it uses the shell.run() command to do so. shell.run is just a wrapper for runLine() so they are essentially the same. after executing your startup file it starts the shell prompt from which you can launch programs, it uses the runLine() function to do so therefore we can assume they are run in the same way
if you run a program and include on the last line
does anyone know why?
In the shell program right by the end it locates your startup file and runs it, it uses the shell.run() command to do so. shell.run is just a wrapper for runLine() so they are essentially the same. after executing your startup file it starts the shell prompt from which you can launch programs, it uses the runLine() function to do so therefore we can assume they are run in the same way
if you run a program and include on the last line
os.queueEvent("terminate")
then the shell will error and terminate, this is important for top level overrides and it works fine however if you do the same in your startup file it does not terminate, as far as I can see the next os.pullEvent() is in the read() function used in the shell prompt but it does not terminate :(/>does anyone know why?