Commit Graph

12 Commits

Author SHA1 Message Date
mlelstv 2a1d6c3e6b Really compute selection coordinates from buffer offset, don't assume
that row=0 col=offset is equivalent.
2023-02-07 20:37:48 +00:00
uwe f9113856a8 wsmoused: support absolute mouse position events
Tested with VirtualBox Guest Addtions.
2021-11-24 14:34:51 +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
lukem 311c22130d appease gcc -Wuninitialized 2005-06-02 09:47:37 +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 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 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 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 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
christos 5740d23c54 Fix selection code [and remove trailing spaces] from Julio Merino. 2002-07-04 20:50:29 +00:00
christos 784751cd6b PR/17402: Julio Merino: Userland portion for moused (with some changes from me). 2002-06-26 23:13:04 +00:00