xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit fa59a7837ae248e4338d4377b1dc9154dca3a28b

Add Ctrl-C key handling to error message dialog.
Hitting Ctrl-C skips all other error messages from background process.
Author: xaizek
Author date (UTC): 2011-06-18 11:32
Committer name: xaizek
Committer date (UTC): 2011-06-18 11:32
Parent(s): fc2e6b698655738e4ead1ab90caf330b1e5ca15b
Signing key:
Tree: 0645011a496d721576ceb9c18b0398ec7f16cae6
File Lines added Lines deleted
ChangeLog 2 0
src/background.c 3 1
src/menus.c 6 2
src/menus.h 2 1
File ChangeLog changed (mode: 100644) (index 88f476693..0617ef83b)
27 27
28 28 More verbose --version (and -v) output. More verbose --version (and -v) output.
29 29
30 Added Ctrl-C key handling to error message dialog.
31
30 32 0.6 to 0.6.1 0.6 to 0.6.1
31 33
32 34 Added :set command. Added :set command.
File src/background.c changed (mode: 100644) (index e8a940029..7dbe2415b)
... ... background_and_wait_for_errors(char *cmd)
260 260 continue; continue;
261 261 if(strlen(buf) + strlen(linebuf) + 1 >= sizeof(buf)) if(strlen(buf) + strlen(linebuf) + 1 >= sizeof(buf))
262 262 { {
263 show_error_msg("Background Process Error", buf);
263 int skip = (show_error_msg("Background Process Error", buf) != 0);
264 264 buf[0] = '\0'; buf[0] = '\0';
265 if(skip)
266 break;
265 267 } }
266 268 strcat(buf, linebuf); strcat(buf, linebuf);
267 269 } }
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);
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master