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:

inputoutput
nothingany

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:

nametypeusage
input listBuiltinInteractive list selection.
input listenBuiltinListen for user interface event.