2
3
4
5
6
7
8
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31static void end_pgm(
void) {
42int main(
int argc,
char **argv) {
46 fprintf(stderr,
"\nCannot set exit function\n");
61 if (!strcmp(pgm_name,
"menu")) {
65 }
else if (!strcmp(pgm_name,
"form")) {
67 }
else if (!strcmp(pgm_name,
"pick")) {
69 }
else if (!strcmp(pgm_name,
"view")) {
75 }
else if (!strcmp(pgm_name,
"ckeys")) {
int popup_ckeys()
Display Curses Keys Responds to curses keys and mouse events, displaying the key code and description...
int main(int argc, char **argv)
Capture the current terminal settings for later restoration.
bool open_curses(SIO *)
Initialize NCurses and color settings.
void win_init_attrs()
Initialize window attributes.
WINDOW * win_del()
Delete the current window and its associated box window.
void destroy_curses()
Gracefully shut down NCurses and restore terminal settings.
int init_form(Init *, int, char **, int, int)
Initialize form data structure and parse description file.
bool base_name(char *, char *)
Returns the base name of a file specification.
void mapp_initialization(Init *, int, char **)
Main initialization function for MAPP - Menu Application.
int init_view_full_screen(Init *)
Initialize C-Menu View in full screen mode.
int init_view_boxwin(Init *, char *)
Initialize the C-Menu View in box window mode.
View * destroy_view(Init *init)
Destroy View structure.
Init * new_init(int, char **)
Create and initialize Init structure.
Menu * new_menu(Init *, int, char **, int, int)
Create and initialize Menu structure.
View * new_view(Init *)
Create and initialize View structure.
unsigned int menu_engine(Init *)
The main loop of the menu system.
int init_pick(Init *, int, char **, int, int)
Initializes pick structure and opens pick input file or pipe.
bool capture_shell_tioctl()
capture_shell_tioctl() - capture shell terminal settings
bool capture_curses_tioctl()
capture_curses_tioctl() - capture curses terminal settings
bool restore_shell_tioctl()
restore_shell_tioctl() - restore shell terminal settings
void sig_dfl_mode()
Set signal handlers to default behavior.
void sig_prog_mode()
Set up signal handlers for interrupt signals.
int view_file(Init *)
Start view.