|
C-Menu 0.2.9
A User Interface Toolkit
|
Display Error messages. More...
Functions | |
| int | answer_yn (char *em0, char *em1, char *em2, char *em3) |
| Accept a single letter answer. | |
| int | display_error (char *em0, char *em1, char *em2, char *em3) |
| Display an error message window or print to stderr. | |
| int | Perror (char *emsg_str) |
| Display a simple error message window or print to stderr. | |
| Chyron * | wait_mk_chyron () |
| Create a Chyron struct for the waiting message. | |
| WINDOW * | wait_mk_win (Chyron *chyron, char *title) |
| Display a popup waiting message. | |
| bool | wait_destroy (Chyron *chyron) |
| Destroy the waiting message window and chyron. | |
| int | wait_continue (WINDOW *wait_win, Chyron *chyron, int remaining) |
| Update the waiting message with remaining time and check for user input. | |
| int | nf_error (int ec, char *s) |
| Display error message and wait for key press. | |
| void | abend (int ec, char *s) |
| Abnormal program termination. | |
Display Error messages.
| void abend | ( | int | ec, |
| char * | s ) |
Abnormal program termination.
| ec | Exit code |
| s | Error message |
Definition at line 1331 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(), init_view_full_screen(), mapp_initialization(), menu_cmd_processor(), new_chyron(), new_form(), new_init(), new_menu(), new_pick(), new_view(), open_curses(), parse_menu_description(), Perror(), sig_prog_mode(), signal_handler(), view_init_input(), and wait_mk_win().
| int answer_yn | ( | char * | em0, |
| char * | em1, | ||
| char * | em2, | ||
| char * | em3 ) |
Accept a single letter answer.
| em0 | First error message line |
| em1 | Second error message line |
| em2 | Third error message line |
| em3 | Fourth error message line |
Definition at line 994 of file dwin.c.
References abend(), cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), ssnprintf(), strnz(), strnz__cpy(), win_del(), win_new(), win_ptr, win_win, and xwgetch().
Referenced by write_view_buffer().
| int display_error | ( | char * | em0, |
| char * | em1, | ||
| char * | em2, | ||
| char * | em3 ) |
Display an error message window or print to stderr.
| em0 | First error message line |
| em1 | Second error message line |
| em2 | Third error message line |
| em3 | Fourth error message line |
Definition at line 1054 of file dwin.c.
References abend(), cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), ssnprintf(), strnz(), strnz__cpy(), win_del(), win_new(), win_ptr, win_win, and xwgetch().
Referenced by enter_file_spec(), form_desc_error(), form_parse_desc(), form_process(), form_read_data(), form_write(), get_clr_pair(), init_view_boxwin(), init_view_full_screen(), lf_find(), mk_dir(), new_init(), new_pick(), new_view(), parse_menu_description(), popup_ckeys(), verify_dir(), verify_file(), view_cmd_processor(), view_init_input(), write_view_buffer(), and xwgetch().
| int nf_error | ( | int | ec, |
| char * | s ) |
Display error message and wait for key press.
| ec | Error code |
| s | Error message |
Definition at line 1320 of file dwin.c.
References di_getch().
| int Perror | ( | char * | emsg_str | ) |
Display a simple error message window or print to stderr.
| emsg_str | Error message string |
Definition at line 1110 of file dwin.c.
References abend(), compile_chyron(), destroy_chyron(), display_chyron(), f_curses_open, Chyron::l, new_chyron(), set_chyron_key(), ssnprintf(), strnz__cpy(), win_del(), win_new(), win_ptr, win_win, and xwgetch().
Referenced by action_disposition(), exec_objects(), field_editor(), fork_exec(), form_display_screen(), form_engine(), form_fmt_field(), form_process(), form_validate_field(), go_to_mark(), go_to_percent(), increment_ln(), init_form(), init_pick(), initialize_line_table(), lf_process(), menu_engine(), new_init(), new_pick(), open_pick_win(), pad_refresh(), parse_menu_description(), popup_ckeys(), search(), view_cmd_processor(), view_init_input(), waitpid_with_timeout(), and write_config().
| int wait_continue | ( | WINDOW * | wait_win, |
| Chyron * | chyron, | ||
| int | remaining ) |
Update the waiting message with remaining time and check for user input.
| chyron | Pointer to Chyron struct for displaying key options |
| wait_win | Pointer to the waiting message window |
| remaining | Time remaining for the wait in seconds |
Definition at line 1215 of file dwin.c.
References cmd_key, display_chyron(), Chyron::l, ssnprintf(), and xwgetch().
Referenced by init_pick(), view_init_input(), and waitpid_with_timeout().
| bool wait_destroy | ( | Chyron * | chyron | ) |
Destroy the waiting message window and chyron.
| chyron | Pointer to Chyron struct for displaying key options |
Definition at line 1203 of file dwin.c.
References destroy_chyron(), and win_del().
Referenced by init_pick(), view_init_input(), and waitpid_with_timeout().
| Chyron * wait_mk_chyron | ( | ) |
Create a Chyron struct for the waiting message.
Definition at line 1161 of file dwin.c.
References compile_chyron(), new_chyron(), and set_chyron_key().
Referenced by init_pick(), view_init_input(), and waitpid_with_timeout().
| WINDOW * wait_mk_win | ( | Chyron * | chyron, |
| char * | title ) |
Display a popup waiting message.
| chyron | Pointer to Chyron struct for displaying key options |
| title | window title |
Definition at line 1172 of file dwin.c.
References abend(), display_chyron(), f_curses_open, Chyron::l, ssnprintf(), win_new(), win_ptr, and win_win.
Referenced by init_pick(), view_init_input(), and waitpid_with_timeout().