Skip to content

[Feature Request] Add multishell.stop() or a way for programs to control / detect the "Press any key to continue" prompt #2381

@HKXingluo

Description

@HKXingluo

📄 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

  1. Add a multishell.stop(id) function that terminates a process without triggering the "Press any key" prompt.

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CraftOSThis affects CraftOS, or any other Lua portions of the mod.enhancementAn extension of a feature or a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions