prompt
Name
prompt -- Sample prompter functions for use with the libuser library.
Description
prompt.h declares two predefined prompter functions which applications can use
instead of providing their own. These should suffice for most command-line
applications. Authors of graphical applications are encouraged to supply
graphical implementations.
Details
lu_prompt_console ()
gboolean lu_prompt_console (struct lu_prompt *prompts,
int count,
gpointer callback_data,
struct lu_error **error); |
Prompts the user using a text console.
lu_prompt_console_quiet ()
gboolean lu_prompt_console_quiet (struct lu_prompt *prompts,
int count,
gpointer callback_data,
struct lu_error **error); |
Prompts the user using a text console. Unlike lu_prompt_console(), this
function will not prompt users for a question for which the calling
application or module supplies a default, and will simply return the default.