2006-04-15 21:53:03 +04:00
|
|
|
.\" $NetBSD: wsmoused.8,v 1.16 2006/04/15 17:53:03 jmmv Exp $
|
2002-06-27 03:13:04 +04:00
|
|
|
.\"
|
2003-03-04 17:33:55 +03:00
|
|
|
.\" Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
|
2002-06-27 03:13:04 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
2003-08-06 22:07:53 +04:00
|
|
|
.\" by Julio M. Merino Vidal.
|
2002-06-27 03:13:04 +04:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
2003-03-04 17:33:55 +03:00
|
|
|
.\"
|
2006-04-15 21:53:03 +04:00
|
|
|
.Dd April 15, 2006
|
2002-06-27 03:13:04 +04:00
|
|
|
.Dt WSMOUSED 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wsmoused
|
2003-08-07 02:11:48 +04:00
|
|
|
.Nd multipurpose mouse daemon
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl d Ar device
|
2003-03-04 17:33:55 +03:00
|
|
|
.Op Fl f Ar conf_file
|
2003-08-06 22:07:53 +04:00
|
|
|
.Op Fl m Ar modes
|
2003-03-04 17:33:55 +03:00
|
|
|
.Op Fl n
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
daemon provides mouse support in console, allowing copying and pasting
|
2003-03-04 17:33:55 +03:00
|
|
|
text.
|
|
|
|
The left mouse button is used to select text when held and you
|
2002-06-27 03:13:04 +04:00
|
|
|
use the right button to paste it in the active console.
|
|
|
|
.Pp
|
|
|
|
Supported options are as follows:
|
2003-04-16 12:42:16 +04:00
|
|
|
.Bl -tag -width XfXconfXfileXX
|
2002-06-27 03:13:04 +04:00
|
|
|
.It Fl d Ar device
|
2003-03-04 20:16:15 +03:00
|
|
|
specifies the device file to be used as the
|
2003-03-04 17:33:55 +03:00
|
|
|
.Xr wsmouse 4
|
|
|
|
device.
|
|
|
|
Defaults to
|
2002-06-27 03:13:04 +04:00
|
|
|
.Pa /dev/wsmouse .
|
2003-03-04 17:33:55 +03:00
|
|
|
.It Fl f Ar conf_file
|
|
|
|
specifies the configuration file to be used.
|
|
|
|
Defaults to
|
|
|
|
.Pa /etc/wsmoused.conf .
|
2003-08-06 22:07:53 +04:00
|
|
|
.It Fl m Ar modes
|
|
|
|
specifies which modes should be activated.
|
|
|
|
Mode names are given in the argument as a whitespace separated list.
|
|
|
|
Overrides the
|
|
|
|
.Sq modes
|
|
|
|
directive in the configuration file.
|
2002-06-28 02:53:12 +04:00
|
|
|
.It Fl n
|
|
|
|
do not fork in the background (for debugging purposes).
|
2003-08-06 22:07:53 +04:00
|
|
|
Overrides the
|
|
|
|
.Sq nodaemon
|
|
|
|
directive in the configuration file.
|
2002-06-27 03:13:04 +04:00
|
|
|
.El
|
2003-03-04 17:33:55 +03:00
|
|
|
.Pp
|
|
|
|
Many other details can be tuned.
|
|
|
|
See
|
|
|
|
.Xr wsmoused.conf 5
|
|
|
|
for more information.
|
2003-08-07 02:11:48 +04:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
is designed to be a multipurpose mouse daemon.
|
2004-06-08 07:28:42 +04:00
|
|
|
Functionality is provided through independent
|
2003-08-07 02:11:48 +04:00
|
|
|
.Em modes ,
|
2004-06-08 07:28:42 +04:00
|
|
|
enabled either through the
|
2003-08-07 02:11:48 +04:00
|
|
|
.Fl m
|
2004-06-08 07:28:42 +04:00
|
|
|
flag or through the
|
2003-08-07 02:11:48 +04:00
|
|
|
.Sq modes
|
|
|
|
property in the configuration file (the former takes precedence).
|
|
|
|
.Ss The action mode
|
|
|
|
The
|
|
|
|
.Sq action
|
2004-06-08 01:25:51 +04:00
|
|
|
mode executes commands upon receiving mouse button events.
|
|
|
|
Commands can be associated on a button basis, and can differentiate between
|
2003-08-07 02:11:48 +04:00
|
|
|
push or release events.
|
|
|
|
.Ss The selection mode
|
|
|
|
The
|
|
|
|
.Sq selection
|
|
|
|
mode provides visual copy and paste support in text consoles when using
|
|
|
|
the
|
|
|
|
.Xr wscons 4
|
|
|
|
device.
|
2004-06-08 01:25:51 +04:00
|
|
|
A selection is created by clicking with the primary mouse button at any
|
2003-08-07 02:11:48 +04:00
|
|
|
point on the screen and dragging it while clicked.
|
|
|
|
When the button is released, the selected text is copied to an internal
|
|
|
|
buffer for further pasting with the secondary button.
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh FILES
|
2003-03-04 17:33:55 +03:00
|
|
|
.Bl -tag -width /dev/wsmoused.conf -compact
|
2002-06-27 19:12:23 +04:00
|
|
|
.It Pa /dev/ttyE[0-n]
|
2002-06-27 03:13:04 +04:00
|
|
|
tty devices
|
2002-06-27 19:12:23 +04:00
|
|
|
.It Pa /dev/ttyEstat
|
2002-06-27 03:13:04 +04:00
|
|
|
wsdisplay status notification device
|
2003-03-04 17:33:55 +03:00
|
|
|
.It Pa /dev/wsmouse[0-n]
|
2002-08-20 20:55:28 +04:00
|
|
|
mouse control device
|
2003-03-04 17:33:55 +03:00
|
|
|
.It Pa /etc/wsmoused.conf
|
|
|
|
default configuration file
|
2002-06-27 03:13:04 +04:00
|
|
|
.El
|
|
|
|
.Sh SECURITY CONSIDERATIONS
|
2003-08-07 02:11:48 +04:00
|
|
|
When using the
|
|
|
|
.Sq action
|
|
|
|
mode, commands specified in the configuration file are executed as the
|
|
|
|
user who started the daemon.
|
|
|
|
By default, this user is
|
|
|
|
.Sq root
|
|
|
|
when using the
|
|
|
|
.Xr rc.subr 8
|
|
|
|
framework.
|
|
|
|
You should set
|
2004-06-08 01:25:51 +04:00
|
|
|
.Sq wsmoused_user="\*[Lt]some_user\*[Gt]"
|
2003-08-07 02:11:48 +04:00
|
|
|
in
|
|
|
|
.Xr rc.conf 5
|
|
|
|
to a safer user (and adjust file permissions accordingly) if the commands
|
|
|
|
you want to execute do not require superuser privileges.
|
|
|
|
An alternative is to use
|
|
|
|
.Xr su 1
|
|
|
|
as part of the command string in the configuration file.
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh NOTES
|
2003-08-07 02:11:48 +04:00
|
|
|
The following notes apply to all work modes:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
When switching from the X screen to a text terminal, there is a small
|
|
|
|
delay (five seconds) until the mouse works again.
|
|
|
|
This time is used by X
|
2002-06-27 03:13:04 +04:00
|
|
|
to close the mouse device properly.
|
2003-08-07 02:11:48 +04:00
|
|
|
.El
|
2002-06-27 20:10:03 +04:00
|
|
|
.Pp
|
2003-08-07 02:11:48 +04:00
|
|
|
The following notes apply to the
|
|
|
|
.Sq selection
|
|
|
|
mode only:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
The mouse cursor is only visible for a short period of time.
|
|
|
|
It will disappear
|
|
|
|
when you stop moving it to avoid console corruption (which happens if
|
|
|
|
it is visible and there is text output).
|
|
|
|
.It
|
|
|
|
You need to change the getty program which is run in the first
|
2002-06-27 20:10:03 +04:00
|
|
|
virtual terminal to use
|
|
|
|
.Pa /dev/ttyE0
|
|
|
|
instead of
|
|
|
|
.Pa /dev/console .
|
2003-08-07 02:11:48 +04:00
|
|
|
To do this, edit
|
2002-06-27 20:10:03 +04:00
|
|
|
.Pa /etc/ttys
|
|
|
|
and
|
2003-08-07 02:11:48 +04:00
|
|
|
.Pa /etc/wscons.conf .
|
|
|
|
.El
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh SEE ALSO
|
2003-08-07 02:11:48 +04:00
|
|
|
.Xr su 1 ,
|
2002-06-27 03:13:04 +04:00
|
|
|
.Xr wscons 4 ,
|
|
|
|
.Xr wsdisplay 4 ,
|
2002-06-27 20:10:03 +04:00
|
|
|
.Xr wsmouse 4 ,
|
2003-08-07 02:11:48 +04:00
|
|
|
.Xr rc.conf 5 ,
|
2002-06-27 20:10:03 +04:00
|
|
|
.Xr ttys 5 ,
|
2002-10-26 01:02:45 +04:00
|
|
|
.Xr wscons.conf 5 ,
|
2003-03-04 17:33:55 +03:00
|
|
|
.Xr wsmoused.conf 5 ,
|
2003-08-07 02:11:48 +04:00
|
|
|
.Xr moused 8 ,
|
|
|
|
.Xr rc.subr 8
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command first appeared in
|
2003-01-20 00:25:36 +03:00
|
|
|
.Nx 2.0 .
|
2003-03-04 17:33:55 +03:00
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command was developed by
|
2003-08-06 22:07:53 +04:00
|
|
|
.An Julio M. Merino Vidal
|
2003-03-04 17:33:55 +03:00
|
|
|
.Aq jmmv@NetBSD.org .
|