19 Interacting with the user

Function: mbfl_dialog_yes_or_no STRING
Function: mbfl_dialog_yes_or_no STRING PROGNAME

Print the question STRING on the standard output and wait for the user to type yes or no in the standard input. Return true if the user has typed yes, false if the user has typed no.

The optional parameter PROGNAME is used as prefix for the prompt; if not given: It defaults to the value of script_PROGNAME. Required user defined variables.

Function: mbfl_dialog_enable_programs

Declare the usage of the external program stty, which is used by mbfl_dialog_ask_password() to turn of password echoing on the terminal.

Function: mbfl_dialog_ask_password PROMPT
Function: mbfl_dialog_ask_password_var _RV PROMPT

Print PROMPT followed by a colon and a space, then reads a password from the terminal. Print the password.

The function variant _var stores the result in the variable _RV, rather than print it; Result variables.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.