input
for platform
Get input from the user.
Signature
> input {flags} (prompt)
Flags
--bytes-until-any, -u {string}
: read bytes (not text) until any of the given stop bytes is seen--numchar, -n {int}
: number of characters to read; suppresses output--suppress-output, -s
: don't print keystroke values
Parameters
prompt
: Prompt to show the user.
Input/output types:
input | output |
---|---|
nothing | any |
Examples
Get input from the user, and assign to a variable
> let user_input = (input)
Get two characters from the user, and assign to a variable
> let user_input = (input --numchar 2)
Subcommands:
name | description | type |
---|---|---|
input list | Interactive list selection. | built-in |
input listen | Listen for user interface event. | built-in |