Next: , Previous: , Up: Top   [Contents][Index]

15 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.

Next: , Previous: , Up: Top   [Contents][Index]

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