kopia lustrzana https://gitlab.com/sane-project/backends
* frontend/scanimage.c: Added the possibility to cleanly stop a batch by pressing Ctrl+D when using --batch-prompt.
rodzic
a089290c1c
commit
c5f9d0d711
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue