📄 Description /
Currently, when a program is launched via bg (or shell.openTab), it will display "Press any key to continue" and wait for input upon exit if the tab was never focused (bInteracted == false). This behavior is hardcoded in multishell and cannot be overridden by the program itself.
This is problematic for truly background or fire-and-forget scripts that:
- Produce no interactive output,
- Are meant to run and close automatically,
- Or are controlled entirely via other channels (e.g., rednet, APIs).
Suggested Solutions
-
Add a multishell.stop(id) function that terminates a process without triggering the "Press any key" prompt.
-
OR: Expose a flag or function like multishell.setNoWaitOnExit(id, true) to suppress the prompt.
This would give developers fine-grained control over program lifecycle and improve the usability of background tasks in multishell environments.