2
3
4
5
6
7
8
11
12
13
14
15
16
29
30
31
32
33
34
35
36
43 Perror("menu_engine: menu is nullptr");
108
109
110
111
112
113
114
115
116
117
126 mousemask(BUTTON1_CLICKED | BUTTON1_DOUBLE_CLICKED,
nullptr);
129 wattron(menu
->win, A_REVERSE);
132 wattroff(menu
->win, A_REVERSE);
134 event.y = event.x = -1;
165
195
201 d = getenv(
"PRTCMD");
202 if (d ==
nullptr || *d ==
'\0')
207 d = getenv(
"PRTFILE");
208 if (d ==
nullptr || *d ==
'\0') {
210 if (d ==
nullptr || *d ==
'\0')
235
256
257
292
305 Menu *save_menu = init
->menu;
309 abend(-1
, "menu_cmd_processor: new_menu() failed");
319
328
337
int popup_form(Init *, int, char **, int, int)
int popup_view(Init *, int, char **, int, int, int, int)
int parse_opt_args(Init *, int, char **)
int popup_pick(Init *, int, char **, int, int)
int popup_ckeys()
Display Curses Keys Responds to curses keys and mouse events, displaying the key code and description...
int xwgetch(WINDOW *, Chyron *, int)
Wrapper for wgetch that handles signals, mouse events, checks for clicks on the chyron line,...
void restore_wins()
Restore all windows after a screen resize.
int win_new(int, int, int, int, char *, int)
Create a new window with optional box and title.
WINDOW * win_del()
Delete the current window and its associated box window.
void mvwaddstr_fill(WINDOW *, int, int, char *, int)
For lines shorter than their display area, fill the rest with spaces.
int Perror(char *)
Display a simple error message window or print to stderr.
void abend(int, char *)
Abnormal program termination.
int full_screen_fork_exec(char **)
Execute a command in full screen mode.
int full_screen_shell(char *)
Execute a shell command in full screen mode.
void destroy_argv(int argc, char **argv)
Deallocates memory allocated for argument strings in argv.
size_t strnz__cpy(char *, const char *, size_t)
safer alternative to strncpy
size_t trim(char *)
Trims leading and trailing spaces from string s in place.
size_t ssnprintf(char *, size_t, const char *,...)
ssnprintf was designed to be a safer alternative to snprintf.
size_t strnz__cat(char *, const char *, size_t)
safer alternative to strncat
int str_to_args(char **, char *, int)
Converts a string into an array of argument strings.
int write_config(Init *)
Write the current configuration to a file specified in init->minitrc.
void zero_opt_args(Init *)
Initialize optional arguments in the Init struct to default values.
Menu * new_menu(Init *, int, char **, int, int)
Create and initialize Menu structure.
Menu * destroy_menu(Init *init)
Destroy Menu structure.
unsigned int menu_engine(Init *)
The main loop of the menu system.
unsigned int menu_cmd_processor(Init *)
Processes user input for the menu system.
unsigned int parse_menu_description(Init *)
Parse menu description file and create Menu.
unsigned int command_type
Line * line[MAX_MENU_LINES]