[sane-devel] Handling buttons

Oliver Rauch oliver.rauch@rauch-domain.de
Fri, 03 May 2002 19:04:20 +0200


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@rauch-domain.de