4.6.8. prompt functions

Usage

prompt_for_choice HEADER CHOICES MESSAGE VARIABLE

prompt_for_int MESSAGE VARIABLE

prompt_for_string MESSAGE VARIABLE

Description

Various functions for user prompts.

Notes

  • MESSAGE is the text to display to the user.
  • VARIABLE is the variable for returning the response.
  • If VARIABLE has a value, this is used as a default value in the prompt.