[sane-devel] Handling buttons

Oliver Rauch oliver.rauch at rauch-domain.de
Fri May 3 18:04:20 BST 2002


Dave Close wrote:
> 
> I need to include some options of type BUTTON in a new backend. These are
> for things like calibration which take a significant time to complete.
> When I use scanimage as a test, it always goes ahead and attempts a scan
> when those options are specified. Other than using a different, possibly
> home-grown, frontend for testing, is there any standard solution?

Add option "-h" after the option of the button, then scanimage does not start a scan.
To avoid the output redirect output of scanimage to /dev/null:

scanimage --buttonfunction -h >/dev/null

Bye
Oliver

-- 
Homepage:	http://www.rauch-domain.de
sane-umax:	http://www.rauch-domain.de/sane-umax
xsane:		http://www.xsane.org
E-Mail:		mailto:Oliver.Rauch at rauch-domain.de



More information about the sane-devel mailing list