1 .\" $NetBSD: wsmoused.8,v 1.15 2004/06/08 03:28:42 wiz Exp $
3 .\" Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Julio M. Merino Vidal.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Neither the name of The NetBSD Foundation nor the names of its
15 .\" contributors may be used to endorse or promote products derived
16 .\" from this software without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd multipurpose mouse daemon
45 daemon provides mouse support in console, allowing copying and pasting
47 The left mouse button is used to select text when held and you
48 use the right button to paste it in the active console.
50 Supported options are as follows:
51 .Bl -tag -width XfXconfXfileXX
53 specifies the device file to be used as the
59 specifies the configuration file to be used.
61 .Pa /etc/wsmoused.conf .
63 specifies which modes should be activated.
64 Mode names are given in the argument as a whitespace separated list.
67 directive in the configuration file.
69 do not fork in the background (for debugging purposes).
72 directive in the configuration file.
75 Many other details can be tuned.
81 is designed to be a multipurpose mouse daemon.
82 Functionality is provided through independent
84 enabled either through the
88 property in the configuration file (the former takes precedence).
92 mode executes commands upon receiving mouse button events.
93 Commands can be associated on a button basis, and can differentiate between
94 push or release events.
95 .Ss The selection mode
98 mode provides visual copy and paste support in text consoles when using
102 A selection is created by clicking with the primary mouse button at any
103 point on the screen and dragging it while clicked.
104 When the button is released, the selected text is copied to an internal
105 buffer for further pasting with the secondary button.
107 .Bl -tag -width /dev/wsmoused.conf -compact
108 .It Pa /dev/ttyE[0-n]
111 wsdisplay status notification device
112 .It Pa /dev/wsmouse[0-n]
114 .It Pa /etc/wsmoused.conf
115 default configuration file
117 .Sh SECURITY CONSIDERATIONS
120 mode, commands specified in the configuration file are executed as the
121 user who started the daemon.
122 By default, this user is
128 .Sq wsmoused_user="\*[Lt]some_user\*[Gt]"
131 to a safer user (and adjust file permissions accordingly) if the commands
132 you want to execute do not require superuser privileges.
133 An alternative is to use
135 as part of the command string in the configuration file.
137 The following notes apply to all work modes:
140 When switching from the X screen to a text terminal, there is a small
141 delay (five seconds) until the mouse works again.
142 This time is used by X
143 to close the mouse device properly.
146 The following notes apply to the
151 The mouse cursor is only visible for a short period of time.
153 when you stop moving it to avoid console corruption (which happens if
154 it is visible and there is text output).
156 You need to change the getty program which is run in the first
157 virtual terminal to use
164 .Pa /etc/wscons.conf .
174 .Xr wsmoused.conf 5 ,
180 command first appeared in
185 command was developed by
186 .An Julio M. Merino Vidal
187 .Aq jmmv@NetBSD.org .