43 {
44 int rc;
50 rc = atexit(end_pgm);
51 if (rc != 0) {
52 fprintf(stderr, "\nCannot set exit function\n");
53 exit(EXIT_FAILURE);
54 }
60 if (!strcmp(pgm_name, "menu")) {
64 } else if (!strcmp(pgm_name, "form")) {
66 } else if (!strcmp(pgm_name, "pick")) {
68 } else if (!strcmp(pgm_name, "view")) {
70 if (
init->lines > 0 ||
init->cols > 0) {
73 }
76 }
77 } else if (!strcmp(pgm_name, "ckeys"))
79
80}
int popup_ckeys()
Display Curses Keys Responds to curses keys and mouse events, displaying the key code and description...
bool open_curses(SIO *)
Initialize NCurses and color settings.
void win_init_attrs()
Initialize window attributes.
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.
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
void sig_prog_mode()
Set up signal handlers for interrupt signals.
int view_file(Init *)
Start view.
The SIO structure encapsulates various aspects of the terminal's state and configuration,...