* frontend/scanimage.c: Added the possibility to cleanly stop a batch by pressing Ctrl+D when using --batch-prompt.

merge-requests/1/head
Julien BLACHE 2004-07-31 17:26:02 +00:00
rodzic a089290c1c
commit c5f9d0d711
2 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2004-07-31 Julien Blache <jb at jblache dot org>
* frontend/scanimage.c: Added the possibility to cleanly stop a
batch by pressing Ctrl+D when using --batch-prompt.
2004-07-28 Gerard Klaver <gerard at gkall dot hobby dot nl>
* doc/descriptions/unsupported.desc: Added Logitech PageScan USB and

Wyświetl plik

@ -1983,7 +1983,16 @@ List of available devices:", prog_name);
{
fprintf (stderr, "Place document no. %d on the scanner.\n", n);
fprintf (stderr, "Press <RETURN> to continue.\n");
fprintf (stderr, "Press Ctrl + D to terminate.\n");
readbuf2=fgets(readbuf, 2, stdin);
if (readbuf2 == NULL)
{
fprintf (stderr, "Batch terminated, %d pages scanned\n", (n - batch_increment));
fclose (stdout);
unlink (path);
break; /* get out of this loop */
}
}
fprintf (stderr, "Scanning page %d\n", n);
}