2003-04-16 12:42:16 +04:00
|
|
|
.\" $NetBSD: wsmoused.8,v 1.11 2003/04/16 08:42:16 wiz 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
|
|
|
|
.\" by Julio Merino.
|
|
|
|
.\"
|
|
|
|
.\" 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
|
|
|
.\"
|
|
|
|
.Dd March 4, 2003
|
2002-06-27 03:13:04 +04:00
|
|
|
.Dt WSMOUSED 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wsmoused
|
|
|
|
.Nd mouse console daemon
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl d Ar device
|
2003-03-04 17:33:55 +03:00
|
|
|
.Op Fl f Ar conf_file
|
|
|
|
.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 .
|
2002-06-28 02:53:12 +04:00
|
|
|
.It Fl n
|
|
|
|
do not fork in the background (for debugging purposes).
|
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.
|
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
|
|
|
|
Be ABSOLUTELY sure that
|
|
|
|
.Pa /dev/ttyE*
|
|
|
|
devices have restrictive permissions as the mouse uses some functions
|
|
|
|
that could allow terminal snooping if improperly set.
|
|
|
|
.Sh NOTES
|
2003-03-04 17:33:55 +03:00
|
|
|
The mouse cursor is only visible for a short time.
|
|
|
|
It will disappear
|
2002-06-27 03:13:04 +04:00
|
|
|
when you stop moving it to avoid console corruption if there is any
|
|
|
|
output while it is visible.
|
|
|
|
.Pp
|
2002-06-28 02:53:12 +04:00
|
|
|
.Cd options WSDISPLAY_CHARFUNCS
|
|
|
|
is needed in your kernel configuration file in
|
2002-06-27 03:13:04 +04:00
|
|
|
order to get mouse console support.
|
|
|
|
.Pp
|
|
|
|
When you return from the X screen to another terminal there is a small
|
2003-03-04 17:33:55 +03:00
|
|
|
time delay until the mouse works again.
|
|
|
|
The delay is needed to allow X
|
2002-06-27 03:13:04 +04:00
|
|
|
to close the mouse device properly.
|
2002-06-27 20:10:03 +04:00
|
|
|
.Pp
|
|
|
|
It's needed that you change the getty program which runs in the first
|
|
|
|
virtual terminal to use
|
|
|
|
.Pa /dev/ttyE0
|
|
|
|
instead of
|
|
|
|
.Pa /dev/console .
|
|
|
|
If you do not change this, you may have problems.
|
|
|
|
You need to edit
|
|
|
|
.Pa /etc/ttys
|
|
|
|
and
|
|
|
|
.Pa /etc/wscons.conf
|
|
|
|
to make this change.
|
2002-06-27 03:13:04 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr wscons 4 ,
|
|
|
|
.Xr wsdisplay 4 ,
|
2002-06-27 20:10:03 +04:00
|
|
|
.Xr wsmouse 4 ,
|
|
|
|
.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 ,
|
2002-10-26 01:02:45 +04:00
|
|
|
.Xr moused 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
|
|
|
|
.An Julio Merino
|
|
|
|
.Aq jmmv@NetBSD.org .
|