File: prompt.sgml

package info (click to toggle)
libuser 1%3A0.56.9.dfsg.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,604 kB
  • ctags: 1,619
  • sloc: ansic: 15,970; sh: 10,210; xml: 2,060; python: 1,740; yacc: 782; makefile: 258; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!-- ##### SECTION Title ##### -->
prompt

<!-- ##### SECTION Short_Description ##### -->

Sample prompter functions for use with the libuser library.

<!-- ##### SECTION Long_Description ##### -->
<para>
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.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>

</para>

<!-- ##### SECTION Stability_Level ##### -->


<!-- ##### FUNCTION lu_prompt_console ##### -->
<para>
Prompts the user using a text console.
</para>

@prompts: An array of #lu_prompt structures.
@count: The number of elements in the @prompts array.
@callback_data: Ignored.
@error: The location to store error information in the event of an error.
@Returns: A #gboolean indicating success or failure.


<!-- ##### FUNCTION lu_prompt_console_quiet ##### -->
<para>
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.
</para>

@prompts: An array of #lu_prompt structures.
@count: The number of elements in the @prompts array.
@callback_data: Ignored.
@error: The location to store error information in the event of an error.
@Returns: A #gboolean indicating success or failure.