| File src/menus.c changed (mode: 100644) (index 23697ddcb..c02d6cf4d) |
| ... |
... |
redraw_error_msg(char *title_arg, const char *message_arg) |
| 152 |
152 |
if(title[0] != '\0') |
if(title[0] != '\0') |
| 153 |
153 |
mvwprintw(error_win, 0, (x - strlen(title) - 2)/2, " %s ", title); |
mvwprintw(error_win, 0, (x - strlen(title) - 2)/2, " %s ", title); |
| 154 |
154 |
|
|
| 155 |
|
mvwaddstr(error_win, y - 2, (x - 25)/2, "Press Return to continue"); |
|
|
155 |
|
mvwaddstr(error_win, y - 2, (x - 63)/2, |
|
156 |
|
"Press Return to continue or Ctrl-C to skip other error messages"); |
| 156 |
157 |
} |
} |
| 157 |
158 |
|
|
| 158 |
|
void |
|
|
159 |
|
/* Returns not zero when user asked to skip error messages that left */ |
|
160 |
|
int |
| 159 |
161 |
show_error_msg(char *title, const char *message) |
show_error_msg(char *title, const char *message) |
| 160 |
162 |
{ |
{ |
| 161 |
163 |
int key; |
int key; |
| |
| ... |
... |
show_error_msg(char *title, const char *message) |
| 178 |
180 |
|
|
| 179 |
181 |
if(curr_stats.need_redraw) |
if(curr_stats.need_redraw) |
| 180 |
182 |
redraw_window(); |
redraw_window(); |
|
183 |
|
|
|
184 |
|
return key == 3; |
| 181 |
185 |
} |
} |
| 182 |
186 |
|
|
| 183 |
187 |
void |
void |
| File src/menus.h changed (mode: 100644) (index b8c77731e..0cecce081) |
| ... |
... |
void show_register_menu(FileView *view); |
| 80 |
80 |
void reset_popup_menu(menu_info *m); |
void reset_popup_menu(menu_info *m); |
| 81 |
81 |
void setup_menu(FileView *view); |
void setup_menu(FileView *view); |
| 82 |
82 |
void redraw_error_msg(char *title_arg, const char *message_arg); |
void redraw_error_msg(char *title_arg, const char *message_arg); |
| 83 |
|
void show_error_msg(char * title, const char *message); |
|
|
83 |
|
/* Returns not zero when user asked to skip error messages that left */ |
|
84 |
|
int show_error_msg(char * title, const char *message); |
| 84 |
85 |
int search_menu_list(FileView *view, char *command, menu_info *ptr); |
int search_menu_list(FileView *view, char *command, menu_info *ptr); |
| 85 |
86 |
int query_user_menu(char *title, char *message); |
int query_user_menu(char *title, char *message); |
| 86 |
87 |
void clean_menu_position(menu_info *m); |
void clean_menu_position(menu_info *m); |