|
C-Menu 0.2.9
A User Interface Toolkit
|
Initialization for Menu Application Programs. More...
#include <argp.h>#include <common.h>#include <locale.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <unistd.h>#include <wchar.h>Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
Enumerations | |
| enum | InitVariables { BG = 257 , FG , BOX_FG , BOX_BG , IND_FG , IND_BG , BRACKETS_FG , BRACKETS_BG , FILL_CHAR_FG , FILL_CHAR_BG , NT_FG , NT_BG , NT_REV_FG , NT_REV_BG , NT_HL_FG , NT_HL_BG , NT_HL_REV_FG , NT_HL_REV_BG , TITLE_FG , TITLE_BG , LN_FG , LN_BG , CMDLN_FG , CMDLN_BG , XBBLACK , XBBLUE , XBCYAN , XBGREEN , XBLACK , XBLUE , XBMAGENTA , XBRED , XBWHITE , XBYELLOW , XCYAN , CM_EDITOR , XGREEN , XMAGENTA , XRED , XWHITE , XYELLOW , GM_BLUE , GM_GRAY , GM_GREEN , GM_RED , MAPP_DATA , MAPP_HELP , MAPP_HOME , MAPP_MSRC , MAPP_USER , MAPP_SPEC , HELP_SPEC , MAPP_THEME , END_INIT_VARS } |
Functions | |
| bool | derive_file_spec (char *file_spec, char *dir, char *file_name) |
| Derive full file specification from directory and file name. | |
| void | display_version () |
| Display the version information of the application. | |
| void | mapp_initialization (Init *init, int argc, char **argv) |
| Main initialization function for MAPP - Menu Application. | |
| void | opt_prt_bool (const char *o, const char *name, bool value) |
| Print an option and its value in a formatted manner for boolean values. | |
| void | opt_prt_char (const char *o, const char *name, const char *value) |
| Print an option and its value in a formatted manner. | |
| void | opt_prt_double (const char *o, const char *name, double value) |
| Print an option and its value in a formatted manner for double values. | |
| void | opt_prt_int (const char *o, const char *name, int value) |
| Print an option and its value in a formatted manner for integer values. | |
| void | opt_prt_str (const char *o, const char *name, const char *value) |
| Print an option and its value in a formatted manner for integer values. | |
| int | parse_opt_args (Init *init, int argc, char **argv) |
| Parse command-line options and set Init struct values accordingly. | |
| void | print_argp_doc (FILE *, char *, char *) |
| int | process_config_file (char *, Init *) |
| int | process_config_files (Init *init) |
| parse the configuration file specified in init->minitrc and set Init struct values accordingly | |
| int | write_config (Init *init) |
| Write the current configuration to a file specified in init->minitrc. | |
| void | zero_opt_args (Init *init) |
| Initialize optional arguments in the Init struct to default values. | |
Variables | |
| const char * | argp_program_bug_address = "billxwaller@gmail.com" |
| const char * | argp_program_version = CM_VERSION |
| int | executor = 0 |
| bool | f_write_config = false |
| enum InitVariables |
Definition at line 31 of file init.c.
| void print_argp_doc | ( | FILE * | minitrc_fp, |
| char * | config_s, | ||
| char * | key ) |
Definition at line 1287 of file init.c.
References get_argp_doc_by_name().
Referenced by write_config().
| int process_config_file | ( | char * | config_file_name, |
| Init * | init ) |
Definition at line 631 of file init.c.
References SIO::bblack, SIO::bblue, SIO::bcyan, Init::begx, Init::begy, SIO::bg, SIO::bgreen, SIO::black, SIO::blue, SIO::blue_gamma, SIO::bmagenta, SIO::borange, SIO::box_bg, SIO::box_fg, Init::brackets, SIO::brackets_bg, SIO::brackets_fg, SIO::bred, SIO::bwhite, SIO::byellow, Init::cmd, Init::cmd_all, Init::cols, SIO::cyan, Init::editor, expand_tilde(), Init::f_at_end_remove, Init::f_erase_remainder, Init::f_ignore_case, Init::f_ln, Init::f_multiple_cmd_args, Init::f_read_theme, Init::f_squeeze, Init::f_strip_ansi, SIO::fg, Init::fill_char, SIO::fill_char_bg, SIO::fill_char_fg, SIO::gray_gamma, SIO::green, SIO::green_gamma, Init::h_shift, SIO::ind_bg, SIO::ind_fg, Init::lines, SIO::ln_bg, SIO::ln_fg, SIO::magenta, Init::mapp_data, Init::mapp_help, Init::mapp_home, Init::mapp_msrc, Init::mapp_spec, Init::mapp_theme, Init::mapp_user, Init::minitrc, SIO::nt_bg, SIO::nt_fg, SIO::nt_hl_bg, SIO::nt_hl_fg, SIO::nt_hl_rev_bg, SIO::nt_hl_rev_fg, SIO::nt_rev_bg, SIO::nt_rev_fg, SIO::orange, Init::p_view_files, Init::parent_cmd, process_config_file(), Init::provider_cmd, Init::receiver_cmd, SIO::red, SIO::red_gamma, Init::select_max, Init::sio, str_to_bool(), str_to_double(), strnz__cpy(), Init::tab_stop, Init::title, SIO::title_bg, SIO::title_fg, unstr_hex_clr(), wait_timeout, SIO::white, and SIO::yellow.
Referenced by process_config_file(), process_config_files(), and read_theme().
| const char* argp_program_bug_address = "billxwaller@gmail.com" |
| const char* argp_program_version = CM_VERSION |
| bool f_write_config = false |
Definition at line 88 of file init.c.
Referenced by mapp_initialization().