Commit Graph

52 Commits

Author SHA1 Message Date
christos ca70685cf2 option noinput nounput 2009-10-29 14:40:09 +00:00
christos a4ac032926 no unput 2009-10-28 22:49:38 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
drochner 0fa7059102 define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
christos 962e67cdc0 fix version ioctl 2009-01-19 00:53:15 +00:00
christos 4cc87f6053 set the event protocol version. 2009-01-13 18:09:19 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
drochner 1914237fbe include <stdlib.h> explicitely, for exit(), getprogname() etc.
(it happens to be pulled in by the yacc skeleton, but we shouldn't
rely on this)
2008-07-17 16:24:55 +00:00
dholland 988d859140 This file requires errno.h 2008-02-24 20:11:59 +00:00
jmmv fadca732d6 Guess the terminal size on each change instead of during program startup.
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.
2007-05-27 15:05:00 +00:00
jmmv b345e2a3a3 WSDISPLAY_CHARFUNCS is gone. 2006-04-15 17:53:03 +00:00
elad d8af4d8962 Change MAX_BLOCKS for b_prop to MAX_PROPS, as it probably should've been.
Fixes overrun found by Coverity, CID 1550.
2006-03-18 02:06:38 +00:00
lukem 311c22130d appease gcc -Wuninitialized 2005-06-02 09:47:37 +00:00
wiz d1625473fe though -> through. 2004-06-08 03:28:42 +00:00
snj 54ad3f67bb Spelling fixes, English tweaks, avoid using < and > directly. 2004-06-07 21:25:51 +00:00
jmmv 7ac0ae8c23 Fix two typos, reported as part of PR bin/22581. 2004-03-31 11:15:36 +00:00
jmmv fb74f324b6 Use the correct size when clearing an array. 2004-02-05 16:11:31 +00:00
jmmv 046f9ce786 Print a new line after an information message. 2004-02-05 16:07:51 +00:00
matt da824b22a2 Forgot to remove #include <stdbool.h> 2004-01-20 22:24:28 +00:00
matt d6276d7620 Remove "bool" support for now since some platforms are still not able to
cope with it.
2004-01-20 22:11:02 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
jmmv e9d1ef2910 Add the xconsole_delay property which specifies the number of seconds to
wait when returning from the X console before reactivating the mouse.
Some systems may require more than the default (or may want less to get
faster response).
2004-01-05 12:16:25 +00:00
jmmv 506d12cd39 Add 2004 to copyright notice because of previous change. 2004-01-05 12:04:46 +00:00
jmmv d6a1e75dd8 Call wscons mode hooks before and after generic_wscons_event. This is to
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).
2004-01-05 12:01:52 +00:00
jmmv 033feda138 Fix xconsole handling (enable the mouse properly when returning from X).
Closes PR bin/23223 by FUKAUMI Naoki.
2004-01-05 11:17:14 +00:00
jmmv 1b5b2c057b fifo, ttystat and xconsole properties are generic (used by all modes), so
move them to their respective section.  Fixes part of PR bin/23223.
2004-01-05 10:59:19 +00:00
jmmv 4414164694 Recognize the "fifo" property (again) in configuration files. This was lost
in some previous commit...
2004-01-05 10:56:02 +00:00
jmmv 18ccc9b90c Add and use the log_err, log_errx, log_warn and log_warnx functions that act as
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.
2003-08-06 23:58:40 +00:00
jmmv a79323123c Add the `action' mode, which can be used to associate commands with mouse
button events.  This mode needs to be explicitly enabled at runtime, and
does nothing if not configured.

As there are now two different modes available, adjust the manpages
accordingly, describing what they do and how they work separatedly.

While here, remove a bunch of unused stuff (event syntax) from config file
parsing.  This was initially added with this new mode in mind, but it has
not been used to make it a lot simpler.
2003-08-06 22:11:48 +00:00
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
wiz 0384eb0efb Increase width in a tagged list for nicer display. 2003-04-16 08:42:16 +00:00
fvdl c6fc01f541 Use both -I. for generated .h files, and -I${.CURDIR} for include "foo" 2003-03-07 01:31:30 +00:00
jmmv fc6e93306c Make the global XConsole variable static. 2003-03-05 10:51:43 +00:00
jmmv b74771a131 Create a pidfile while running (which can be tuned with the new "pidfile"
configuration variable). Ok'ed by christos.
2003-03-04 22:31:15 +00:00
jmmv 2ea5d53fe3 Avoid writing things to the fifo if it was not opened. 2003-03-04 19:43:09 +00:00
jmmv 73b21378a4 Check if configuration data exists before freeing memory. 2003-03-04 19:28:59 +00:00
jmmv 1d2af97bbf Remove trailing whitespace. 2003-03-04 17:16:15 +00:00
jmmv ba49f26643 Configuration file is optional, as well as sections inside it. 2003-03-04 14:38:25 +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
atatat dd0a8acd21 The next release will be 2.0, not 1.7. 2003-01-19 21:25:36 +00:00
jmmv 0a970e7423 Add a new flag, -l, which swaps mouse buttons; this is useful for left
handed users.

Patch provided in my own PR bin/19143 with some minor changes as suggested
by wiz.
2002-12-25 19:13:53 +00:00
jmmv c29a82ed73 Fix a bug that caused the program to enter an infinite loop when selecting
an empty line.

This closes my own PR bin/19160. Reviewed by wiz.
2002-12-25 19:04:27 +00:00
wiz 3ced2f4983 Mention moused(8). From Julio Merino in PR 18801. 2002-10-25 21:02:45 +00:00
christos 5cefaa7349 PR/17402: Julio Merino: better fine tuning for both x and y. 2002-08-20 16:55:28 +00:00
christos 5740d23c54 Fix selection code [and remove trailing spaces] from Julio Merino. 2002-07-04 20:50:29 +00:00
christos cb57f0e9bb change the comparisons to account for the unsigness of the variables.
From Julio Merino.
2002-07-02 12:41:26 +00:00
wiz 2ae2723f67 Sort options in usage. 2002-06-27 22:58:54 +00:00
wiz c89a21963c Spelling fixes, sort options alphabetically, correct copyright date,
and some mdoc improvements.
2002-06-27 22:53:12 +00:00
christos 49cc9b7cd6 clarification on mouse use from Julio Merino 2002-06-27 16:10:03 +00:00
christos 19c9175000 correct for ttyEstat 2002-06-27 15:12:23 +00:00