Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add user input support to the standard library #360

@OMouta

Description

@OMouta

Currently, the Lute standard library does not provide a way to get input from the user interactively (e.g., reading from stdin or prompting for user input during script execution).

Feature Request:
Please consider adding functions or utilities to the standard library that enable interactive user input. This could include:

  • Reading strings, numbers, or other types from stdin
  • Prompting the user and collecting their response during script runtime
  • Handling basic validation or error cases for input

Use Cases:

  • Scripts that need to interactively configure behavior
  • Educational examples or REPL-style usage
  • CLI apps requiring user choices, confirmations, or data entry

Current Workarounds:

  • Parsing CLI arguments (not interactive)
  • Reading from files (not interactive)

Thank you for considering this enhancement.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestruntimeWork in the C++ runtime portion of the codestdWork in the Luau standard library portion of the code

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions