Ask the user to pick one of choices, using the arrow keys and enter. When stdin or stdout isn't a TTY, the choices are listed and picked by number or name.
choices
Ask the user to pick one of
choices, using the arrow keys and enter. When stdin or stdout isn't a TTY, the choices are listed and picked by number or name.