New options: -[io], read/write files from/to stdin/out

Fixes issue #84
This commit is contained in:
Bert Münnich
2013-03-19 21:11:29 +01:00
parent 447bc1c784
commit 6f05e77728
6 changed files with 60 additions and 38 deletions

View File

@ -26,6 +26,7 @@
#include "commands.h"
#include "image.h"
#include "options.h"
#include "thumbs.h"
#include "util.h"
#include "config.h"
@ -57,6 +58,12 @@ const int ss_delays[] = {
bool it_quit(arg_t a)
{
unsigned int i;
if (options->to_stdout) {
for (i = 0; i < filecnt; i++)
printf("%s\n", files[i].name);
}
cleanup();
exit(EXIT_SUCCESS);
}