OpenGrok
Cross Reference: selection.c
xref
: /
src
/
usr.sbin
/
wsmoused
/
selection.c
Home
|
History
|
Annotate
|
Download
|
only in
wsmoused
History log of
/src/usr.sbin/wsmoused/selection.c
Revision
Date
Author
Comments
1.12
07-Feb-2023
mlelstv
Really compute selection coordinates from buffer offset, don't assume
that row=0 col=offset is equivalent.
1.11
24-Nov-2021
uwe
wsmoused: support absolute mouse position events
Tested with VirtualBox Guest Addtions.
1.10
27-May-2007
jmmv
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.
1.9
02-Jun-2005
lukem
branches: 1.9.4; 1.9.6;
appease gcc -Wuninitialized
1.8
20-Jan-2004
matt
Remove "bool" support for now since some platforms are still not able to
cope with it.
1.7
05-Jan-2004
jmmv
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).
1.6
05-Jan-2004
jmmv
Fix xconsole handling (enable the mouse properly when returning from X).
Closes PR bin/23223 by FUKAUMI Naoki.
1.5
06-Aug-2003
jmmv
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.
1.4
06-Aug-2003
jmmv
- 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.
1.3
25-Dec-2002
jmmv
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.
1.2
04-Jul-2002
christos
Fix selection code [and remove trailing spaces] from Julio Merino.
1.1
26-Jun-2002
christos
PR/17402: Julio Merino: Userland portion for moused (with some changes from me).
1.9.6.1
03-Sep-2007
wrstuden
Sync w/ NetBSD-4-RC_1
1.9.4.1
22-Jun-2007
liamjfoy
Pull up following revision(s) (requested by jmmv in ticket #742):
usr.sbin/wsmoused/selection.c: revision 1.10
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.
Indexes created Thu Oct 16 14:10:15 GMT 2025