This allows the mouse to be used properly in consoles with different sizes:
before this change it was restricted to the size reported by the console
used to start the daemon.
Problem reported by Blair Sadewitz.
allow the selection mode hide the mouse before the device is closed, thus
fixing a minor problem (the pointer remained visible when returning from
X for some seconds).
wrappers for err, errx, warn and warnx respectively when running in foreground
and call syslog functions when running in daemon mode.
Also add and use an extra log_info function for other types of information.
described by a structure with pointers to functions.
- Clearly separate the "selection" mode (which provides copy and paste support
in console) from wsmoused's main program.
- Added the "modes" property to the configuration file and the "-m" command
line option to specify which modes should be activated. (this is mostly
useless for now, as only the "selection" mode exists; a new mode will
be added soon, hopefully).
- While here, several style fixes according to share/misc/style.