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
|
/**
* @file
* @brief Prompts.
**/
#ifndef PROMPT_H
#define PROMPT_H
bool yes_or_no(PRINTF(0, ));
typedef map<int, int> explicit_keymap;
bool yesno(const char * str, bool safe, int safeanswer,
bool clear_after = true, bool interrupt_delays = true,
bool noprompt = false,
const explicit_keymap *map = NULL,
GotoRegion = GOTO_MSG);
int yesnoquit(const char* str, bool safe = true, int safeanswer = 0,
bool allow_all = false, bool clear_after = true,
char alt_yes = 'Y', char alt_yes2 = 'Y');
int prompt_for_quantity(const char *prompt);
int prompt_for_int(const char *prompt, bool nonneg);
double prompt_for_float(const char* prompt);
char index_to_letter(int the_index);
int letter_to_index(int the_letter);
#endif
|