This is not a question wanting you to write any code for me, but I would like to know why when I call
term.exit()in my code, it stops the program executing (like it should), but I get the error:
program:1: attempt to call nil
Does anyone know why this is and how to stop it happening? I tried searching through the Lua term API, but I could not find the function exit(), so I could not find the source of the problem.
When ever I try
shell.exit()it just does nothing. Anyone know why this is as well?
Thanks so much for any help! I've been pondering this for a while.












