41 {
42 int rc;
48 rc = atexit(end_pgm);
49 if (rc != 0) {
50 fprintf(stderr, "\nCannot set exit function\n");
51 exit(EXIT_FAILURE);
52 }
53#ifdef UAL_UI
59#else
61#endif
66 if (!strcmp(pgm_name, "menu")) {
69 } else if (!strcmp(pgm_name, "form")) {
71 } else if (!strcmp(pgm_name, "pick")) {
73 } else if (!strcmp(pgm_name, "view")) {
80 }
83 }
84 } else if (!strcmp(pgm_name, "ckeys"))
89 exit(EXIT_SUCCESS);
90}
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 destroy_curses()
Gracefully shut down NCurses and restore terminal settings.
void initialize_local_colors(SIO *)
Initialize local color variables and color pairs based on SIO 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 *)
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.
Init * destroy_init(Init *init)
Destroy Init 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.
UiRuntime * ui_init(const UiConfig *cfg)
Initialize NCUrses.
Gathers runtime information for C-Menu Menu, Form, Pick, and View components, used for passing common...
The SIO structure encapsulates various aspects of the terminal's state and configuration,...
Structure representing the configuration options for the UI runtime.