diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-08-27 22:50:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-08-27 22:50:59 +0200 |
commit | 8e88d20a2caa0aa7e07580fa1a0ea75124c69bf4 (patch) | |
tree | d7c139181343357710e2644bd1ce1540c9fdf169 | |
parent | d3c0aa11daf16c03be51e8fcb113d32320ef531c (diff) |
--(un)loadable: print progress (to stderr) when run with --verbose (closes #134)
-rw-r--r-- | src/list.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -89,21 +89,33 @@ void real_loadables_mode(int loadable) if (feh_load_image(&im, file)) { /* loaded ok */ if (loadable) { + if (opt.verbose) + feh_display_status('.'); puts(file->filename); feh_action_run(file, opt.actions[0]); } - else + else { + if (opt.verbose) + feh_display_status('s'); ret = 1; + } gib_imlib_free_image_and_decache(im); } else { /* Oh dear. */ if (!loadable) { + if (opt.verbose) + feh_display_status('.'); puts(file->filename); feh_action_run(file, opt.actions[0]); } - else + else { + if (opt.verbose) + feh_display_status('.'); ret = 1; + } } } + if (opt.verbose) + feh_display_status(0); exit(ret); } |