Computers · Program API v1.2.0
    Preparing search index...

    Function input

    • Wait for the controller to enter and submit one line. Supports editing and paste. Answers are visible to viewers; this is public gameplay input.

      Parameters

      • label: string

        Prompt text, limited to 512 characters.

      Returns Promise<string>

      The submitted string, up to 1024 characters; rejects when cancelled.

      const name = await terminal.input("Operator name:");
      terminal.writeLine(`Welcome, ${name}.`);