Commit Graph

3 Commits

Author SHA1 Message Date
jmmv 15ba121760 - Let the main program handle multiple run modes easily. Each one is
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.
2003-08-06 18:07:53 +00:00
jmmv 73b21378a4 Check if configuration data exists before freeing memory. 2003-03-04 19:28:59 +00:00
jmmv 68e2c80483 Add support to parse a configuration file, /etc/wsmoused.conf by default.
This file lets users tune the behavior of the daemon in a easy way, without
having to mess with command line options (nor in rc.conf).
It will also simplify future integration of new functionality within the
program as multiple "modes" of operator are recognized.
The new wsmoused.conf(5) manpage contains all related details.

Some error message cleanup and minor manpage fixes too.

Ok'ed by christos.
2003-03-04 14:33:55 +00:00