|
C-Menu 0.2.9
A User Interface Toolkit
|
Display Error messages. More...
Functions | |
| void | abend (int ec, char *s) |
| Abnormal program termination. | |
| bool | action_disposition (char *title, char *action_str) |
| Display a simple action disposition message window or print to stderr. | |
| int | answer_yn (char *msg0, char *msg1, char *msg2, char *msg3) |
| Accept a single letter answer. | |
| int | display_error (char *msg0, char *msg1, char *msg2, char *msg3) |
| Display an error message window or print to stderr. | |
| int | Perror (char *emsg_str) |
| Display a simple error message window or print to stderr. | |
Display Error messages.
| void abend | ( | int | ec, |
| char * | s ) |
Abnormal program termination.
abend
| ec | Exit code |
| s | Error message |
Definition at line 1204 of file dwin.c.
References destroy_curses(), restore_shell_tioctl(), and sig_dfl_mode().
Referenced by answer_yn(), display_error(), form_parse_desc(), init_menu_files(), init_pick(), mapp_initialization(), new_chyron(), new_form(), new_init(), new_menu(), new_pick(), new_view(), parse_menu_description(), Perror(), sig_prog_mode(), signal_handler(), and view_init_input().
| bool action_disposition | ( | char * | title, |
| char * | action_str ) |
Display a simple action disposition message window or print to stderr.
action_disposition
| title | Window title |
| action_str | Action description string |
Definition at line 895 of file dwin.c.
References cm_surface_destroy(), cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), em0, f_curses_open, new_chyron(), Perror(), set_chyron_key(), sfc_ptr, ssnprintf(), surface_box_win_new(), ui_draw_text(), ui_get_event(), ui_get_screen_size(), ui_surface, WIN, UiEvent::x, and UiEvent::y.
| int answer_yn | ( | char * | msg0, |
| char * | msg1, | ||
| char * | msg2, | ||
| char * | msg3 ) |
Accept a single letter answer.
answer_yn
| msg0 | First error message line |
| msg1 | Second error message line |
| msg2 | Third error message line |
| msg3 | Fourth error message line |
Definition at line 715 of file dwin.c.
References abend(), cm_surface_destroy(), cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), sfc_ptr, ssnprintf(), strnz(), strnz__cpy(), surface_box_win_new(), ui_curs_set(), ui_draw_text(), ui_get_event(), ui_get_screen_size(), ui_surface, WIN, UiEvent::x, and UiEvent::y.
Referenced by write_view_buffer().
| int display_error | ( | char * | msg0, |
| char * | msg1, | ||
| char * | msg2, | ||
| char * | msg3 ) |
Display an error message window or print to stderr.
display_error
| msg0 | First error message line |
| msg1 | Second error message line |
| msg2 | Third error message line |
| msg3 | Fourth error message line |
Definition at line 778 of file dwin.c.
References abend(), cm_surface_destroy(), cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), sfc_ptr, ssnprintf(), strnz(), strnz__cpy(), surface_box_win_new(), ui_draw_text(), ui_get_event(), ui_get_screen_size(), ui_surface, WIN, UiEvent::x, and UiEvent::y.
Referenced by enter_file_spec(), form_desc_error(), form_parse_desc(), form_process(), form_read_data(), form_write(), mk_dir(), new_init(), new_pick(), new_view(), notcurses_input(), parse_menu_description(), ui_add_pair(), verify_dir(), verify_file(), view_cmd_processor(), view_init_input(), and write_view_buffer().
| int Perror | ( | char * | emsg_str | ) |
Display a simple error message window or print to stderr.
Perror
| emsg_str | Error message string |
Definition at line 841 of file dwin.c.
References abend(), cm_surface_destroy(), compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), sfc_ptr, ssnprintf(), strnz(), strnz__cpy(), surface_box_win_new(), ui_draw_text(), ui_get_event(), ui_get_screen_size(), ui_surface, WIN, UiEvent::x, and UiEvent::y.
Referenced by action_disposition(), display_form(), exec_objects(), field_editor(), fork_exec(), form_engine(), form_exec_receiver(), form_fmt_field(), form_process(), form_validate_field(), go_to_line(), go_to_mark(), go_to_percent(), increment_ln(), init_form(), init_pick(), init_view_full_screen(), initialize_line_table(), menu_engine(), new_init(), new_pick(), open_pick_win(), parse_menu_description(), pick_engine(), popup_ckeys(), search(), surface_box_win_new(), surface_split_box_win_new(), ui_init(), view_cmd_processor(), view_init_input(), and write_config().