194a804c5SMike Pritchard.\" Copyright (c) 1996 294a804c5SMike Pritchard.\" Mike Pritchard <mpp@FreeBSD.org>. All rights reserved. 394a804c5SMike Pritchard.\" 494a804c5SMike Pritchard.\" Redistribution and use in source and binary forms, with or without 594a804c5SMike Pritchard.\" modification, are permitted provided that the following conditions 694a804c5SMike Pritchard.\" are met: 794a804c5SMike Pritchard.\" 1. Redistributions of source code must retain the above copyright 894a804c5SMike Pritchard.\" notice, this list of conditions and the following disclaimer. 994a804c5SMike Pritchard.\" 2. Redistributions in binary form must reproduce the above copyright 1094a804c5SMike Pritchard.\" notice, this list of conditions and the following disclaimer in the 1194a804c5SMike Pritchard.\" documentation and/or other materials provided with the distribution. 1294a804c5SMike Pritchard.\" 3. All advertising materials mentioning features or use of this software 1394a804c5SMike Pritchard.\" must display the following acknowledgement: 1494a804c5SMike Pritchard.\" This product includes software developed by Mike Pritchard. 1594a804c5SMike Pritchard.\" 4. Neither the name of the author nor the names of its contributors 1694a804c5SMike Pritchard.\" may be used to endorse or promote products derived from this software 1794a804c5SMike Pritchard.\" without specific prior written permission. 1894a804c5SMike Pritchard.\" 1994a804c5SMike Pritchard.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2094a804c5SMike Pritchard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2194a804c5SMike Pritchard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2294a804c5SMike Pritchard.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2394a804c5SMike Pritchard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2494a804c5SMike Pritchard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2594a804c5SMike Pritchard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2694a804c5SMike Pritchard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2794a804c5SMike Pritchard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2894a804c5SMike Pritchard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2994a804c5SMike Pritchard.\" SUCH DAMAGE. 3094a804c5SMike Pritchard.\" 3197d92980SPeter Wemm.\" $FreeBSD$ 325cf470d6SWolfram Schneider.\" 3359bd9500SSimon L. B. Nielsen.Dd November 12, 2004 3494a804c5SMike Pritchard.Dt MOUSED 8 35a4c37c81SRuslan Ermilov.Os 3694a804c5SMike Pritchard.Sh NAME 3794a804c5SMike Pritchard.Nm moused 385f436cfbSKazutaka YOKOTA.Nd pass mouse data to the console driver 3994a804c5SMike Pritchard.Sh SYNOPSIS 4094a804c5SMike Pritchard.Nm 41efe4cd6aSGeorge C A Reid.Op Fl DPRacdfs 42f82812a2SKazutaka YOKOTA.Op Fl I Ar file 435f436cfbSKazutaka YOKOTA.Op Fl F Ar rate 445f436cfbSKazutaka YOKOTA.Op Fl r Ar resolution 4594a804c5SMike Pritchard.Op Fl S Ar baudrate 462a669c47SPhilip Paeps.Op Fl V Op Fl U Ar distance 47efe4cd6aSGeorge C A Reid.Op Fl a Ar X Ns Op , Ns Ar Y 485f436cfbSKazutaka YOKOTA.Op Fl C Ar threshold 495f436cfbSKazutaka YOKOTA.Op Fl m Ar N=M 509fb1d70cSKazutaka YOKOTA.Op Fl w Ar N 515f436cfbSKazutaka YOKOTA.Op Fl z Ar target 525f436cfbSKazutaka YOKOTA.Op Fl t Ar mousetype 5333282bf4SPhilip Paeps.Op Fl l Ar level 54e68b10b3SKazutaka YOKOTA.Op Fl 3 Op Fl E Ar timeout 5594a804c5SMike Pritchard.Fl p Ar port 5694a804c5SMike Pritchard.Pp 575f436cfbSKazutaka YOKOTA.Nm 585f436cfbSKazutaka YOKOTA.Op Fl Pd 595f436cfbSKazutaka YOKOTA.Fl p Ar port 605f436cfbSKazutaka YOKOTA.Fl i Ar info 615f436cfbSKazutaka YOKOTA.Sh DESCRIPTION 62490d5836SPhilippe CharnierThe 635f436cfbSKazutaka YOKOTA.Nm 64490d5836SPhilippe Charnierutility and the console driver work together to support 655f436cfbSKazutaka YOKOTAmouse operation in the text console and user programs. 665f436cfbSKazutaka YOKOTAThey virtualize the mouse and provide user programs with mouse data 675f436cfbSKazutaka YOKOTAin the standard format 68c4d9468eSRuslan Ermilov(see 69c4d9468eSRuslan Ermilov.Xr sysmouse 4 ) . 705f436cfbSKazutaka YOKOTA.Pp 715f436cfbSKazutaka YOKOTAThe mouse daemon listens to the specified port for mouse data, 725f436cfbSKazutaka YOKOTAinterprets and then passes it via ioctls to the console driver. 735f436cfbSKazutaka YOKOTAThe mouse daemon 745f436cfbSKazutaka YOKOTAreports translation movement, button press/release 755f436cfbSKazutaka YOKOTAevents and movement of the roller or the wheel if available. 7659bd9500SSimon L. B. NielsenThe roller/wheel movement is reported as 7759bd9500SSimon L. B. Nielsen.Dq Z 7859bd9500SSimon L. B. Nielsenaxis movement. 795f436cfbSKazutaka YOKOTA.Pp 805f436cfbSKazutaka YOKOTAThe console driver will display the mouse pointer on the screen 815f436cfbSKazutaka YOKOTAand provide cut and paste functions if the mouse pointer is enabled 825f436cfbSKazutaka YOKOTAin the virtual console via 832f2ac2cbSChris Costello.Xr vidcontrol 1 . 845f436cfbSKazutaka YOKOTAIf 855f436cfbSKazutaka YOKOTA.Xr sysmouse 4 865f436cfbSKazutaka YOKOTAis opened by the user program, the console driver also passes the mouse 875f436cfbSKazutaka YOKOTAdata to the device so that the user program will see it. 885f436cfbSKazutaka YOKOTA.Pp 895f436cfbSKazutaka YOKOTAIf the mouse daemon receives the signal 905f436cfbSKazutaka YOKOTA.Dv SIGHUP , 9175c07b90SChristian Bruefferit will reopen the mouse port and reinitialize itself. 92f2e366a1SSheldon HearnUseful if 935f436cfbSKazutaka YOKOTAthe mouse is attached/detached while the system is suspended. 945f436cfbSKazutaka YOKOTA.Pp 955f436cfbSKazutaka YOKOTAThe following options are available: 9694a804c5SMike Pritchard.Bl -tag -width indent 975f436cfbSKazutaka YOKOTA.It Fl 3 98f2e366a1SSheldon HearnEmulate the third (middle) button for 2-button mice. 99f2e366a1SSheldon HearnIt is emulated 1005f436cfbSKazutaka YOKOTAby pressing the left and right physical buttons simultaneously. 1015f436cfbSKazutaka YOKOTA.It Fl C Ar threshold 1025f436cfbSKazutaka YOKOTASet double click speed as the maximum interval in msec between button clicks. 1035f436cfbSKazutaka YOKOTAWithout this option, the default value of 500 msec will be assumed. 1045f436cfbSKazutaka YOKOTAThis option will have effect only on the cut and paste operations 105f2e366a1SSheldon Hearnin the text mode console. 106f2e366a1SSheldon HearnThe user program which is reading mouse data 1075f436cfbSKazutaka YOKOTAvia 1085f436cfbSKazutaka YOKOTA.Xr sysmouse 4 109f5c73cbbSKazutaka YOKOTAwill not be affected. 11094a804c5SMike Pritchard.It Fl D 11194a804c5SMike PritchardLower DTR on the serial port. 1125f436cfbSKazutaka YOKOTAThis option is valid only if 1135f436cfbSKazutaka YOKOTA.Ar mousesystems 1145f436cfbSKazutaka YOKOTAis selected as the protocol type. 1155f436cfbSKazutaka YOKOTAThe DTR line may need to be dropped for a 3-button mouse 1165f436cfbSKazutaka YOKOTAto operate in the 1175f436cfbSKazutaka YOKOTA.Ar mousesystems 1185f436cfbSKazutaka YOKOTAmode. 119e68b10b3SKazutaka YOKOTA.It Fl E Ar timeout 120e68b10b3SKazutaka YOKOTAWhen the third button emulation is enabled 121c4d9468eSRuslan Ermilov(see above), 122e68b10b3SKazutaka YOKOTAthe 123e68b10b3SKazutaka YOKOTA.Nm 124490d5836SPhilippe Charnierutility waits 125e68b10b3SKazutaka YOKOTA.Ar timeout 126f5c73cbbSKazutaka YOKOTAmsec at most before deciding whether two buttons are being pressed 127e68b10b3SKazutaka YOKOTAsimultaneously. 1289c9d9993SKazutaka YOKOTAThe default timeout is 100 msec. 1295f436cfbSKazutaka YOKOTA.It Fl F Ar rate 1305f436cfbSKazutaka YOKOTASet the report rate (reports/sec) of the device if supported. 131f82812a2SKazutaka YOKOTA.It Fl I Ar file 132f82812a2SKazutaka YOKOTAWrite the process id of the 133f82812a2SKazutaka YOKOTA.Nm 134490d5836SPhilippe Charnierutility in the specified file. 135f82812a2SKazutaka YOKOTAWithout this option, the process id will be stored in 136f82812a2SKazutaka YOKOTA.Pa /var/run/moused.pid . 1375f436cfbSKazutaka YOKOTA.It Fl P 1385f436cfbSKazutaka YOKOTADo not start the Plug and Play COM device enumeration procedure 1395f436cfbSKazutaka YOKOTAwhen identifying the serial mouse. 1405f436cfbSKazutaka YOKOTAIf this option is given together with the 1415f436cfbSKazutaka YOKOTA.Fl i 1425f436cfbSKazutaka YOKOTAoption, the 1435f436cfbSKazutaka YOKOTA.Nm 144490d5836SPhilippe Charnierutility will not be able to print useful information for the serial mouse. 14594a804c5SMike Pritchard.It Fl R 14694a804c5SMike PritchardLower RTS on the serial port. 1475f436cfbSKazutaka YOKOTAThis option is valid only if 1485f436cfbSKazutaka YOKOTA.Ar mousesystems 1495f436cfbSKazutaka YOKOTAis selected as the protocol type by the 1505f436cfbSKazutaka YOKOTA.Fl t 151f2e366a1SSheldon Hearnoption below. 152f2e366a1SSheldon HearnIt is often used with the 1535f436cfbSKazutaka YOKOTA.Fl D 154f2e366a1SSheldon Hearnoption above. 155f2e366a1SSheldon HearnBoth RTS and DTR lines may need to be dropped for 1565f436cfbSKazutaka YOKOTAa 3-button mouse to operate in the 1575f436cfbSKazutaka YOKOTA.Ar mousesystems 1585f436cfbSKazutaka YOKOTAmode. 15994a804c5SMike Pritchard.It Fl S Ar baudrate 16094a804c5SMike PritchardSelect the baudrate for the serial port (1200 to 9600). 1615f436cfbSKazutaka YOKOTANot all serial mice support this option. 1622a669c47SPhilip Paeps.It Fl V 16359bd9500SSimon L. B. NielsenEnable 16459bd9500SSimon L. B. Nielsen.Dq Virtual Scrolling . 16559bd9500SSimon L. B. NielsenWith this option set, holding the middle mouse 16659bd9500SSimon L. B. Nielsenbutton down will cause motion to be interpreted as scrolling. 16759bd9500SSimon L. B. NielsenUse the 1682a669c47SPhilip Paeps.Fl U 1692a669c47SPhilip Paepsoption to set the distance the mouse must move before the scrolling mode is 1702a669c47SPhilip Paepsactivated. 171efe4cd6aSGeorge C A Reid.It Fl a Ar X Ns Op , Ns Ar Y 172efe4cd6aSGeorge C A ReidAccelerate or decelerate the mouse input. 173efe4cd6aSGeorge C A ReidThis is a linear acceleration only. 174efe4cd6aSGeorge C A ReidValues less than 1.0 slow down movement, values greater than 1.0 speed it 175efe4cd6aSGeorge C A Reidup. 176efe4cd6aSGeorge C A ReidSpecifying only one value sets the acceleration for both axes. 17794a804c5SMike Pritchard.It Fl c 1785f436cfbSKazutaka YOKOTASome mice report middle button down events 179f5c73cbbSKazutaka YOKOTAas if the left and right buttons are being pressed. 180f2e366a1SSheldon HearnThis option handles this. 18194a804c5SMike Pritchard.It Fl d 18294a804c5SMike PritchardEnable debugging messages. 18394a804c5SMike Pritchard.It Fl f 18494a804c5SMike PritchardDo not become a daemon and instead run as a foreground process. 1855f436cfbSKazutaka YOKOTAUseful for testing and debugging. 1865f436cfbSKazutaka YOKOTA.It Fl i Ar info 18707bfccd7SRuslan ErmilovPrint specified information and quit. 18807bfccd7SRuslan ErmilovAvailable pieces of 1895f436cfbSKazutaka YOKOTAinformation are: 1905f436cfbSKazutaka YOKOTA.Pp 1915f436cfbSKazutaka YOKOTA.Bl -tag -compact -width modelxxx 1925f436cfbSKazutaka YOKOTA.It Ar port 19357e4378bSRuslan ErmilovPort (device file) name, i.e.\& 194d0139887SPhilip Paeps.Pa /dev/cuad0 , 1955f436cfbSKazutaka YOKOTA.Pa /dev/mse0 1965f436cfbSKazutaka YOKOTAand 1975f436cfbSKazutaka YOKOTA.Pa /dev/psm0 . 1985f436cfbSKazutaka YOKOTA.It Ar if 1995f436cfbSKazutaka YOKOTAInterface type: serial, bus, inport or ps/2. 2005f436cfbSKazutaka YOKOTA.It Ar type 201f2e366a1SSheldon HearnProtocol type. 202f2e366a1SSheldon HearnIt is one of the types listed under the 2035f436cfbSKazutaka YOKOTA.Fl t 2045f436cfbSKazutaka YOKOTAoption below or 2055f436cfbSKazutaka YOKOTA.Ar sysmouse 2065f436cfbSKazutaka YOKOTAif the driver supports the 2075f436cfbSKazutaka YOKOTA.Ar sysmouse 2085f436cfbSKazutaka YOKOTAdata format standard. 2095f436cfbSKazutaka YOKOTA.It Ar model 21007bfccd7SRuslan ErmilovMouse model. 21107bfccd7SRuslan ErmilovThe 2125f436cfbSKazutaka YOKOTA.Nm 213490d5836SPhilippe Charnierutility may not always be able to identify the model. 2145f436cfbSKazutaka YOKOTA.It Ar all 21507bfccd7SRuslan ErmilovAll of the above items. 21607bfccd7SRuslan ErmilovPrint port, interface, type and model in this order 2175f436cfbSKazutaka YOKOTAin one line. 2185f436cfbSKazutaka YOKOTA.El 2195f436cfbSKazutaka YOKOTA.Pp 2205f436cfbSKazutaka YOKOTAIf the 2215f436cfbSKazutaka YOKOTA.Nm 22259bd9500SSimon L. B. Nielsenutility cannot determine the requested information, it prints 22359bd9500SSimon L. B. Nielsen.Dq Li unknown 22459bd9500SSimon L. B. Nielsenor 22559bd9500SSimon L. B. Nielsen.Dq Li generic . 22633282bf4SPhilip Paeps.It Fl l Ar level 22733282bf4SPhilip PaepsSpecifies at which level 22833282bf4SPhilip Paeps.Nm 22933282bf4SPhilip Paepsshould operate the mouse driver. 23033282bf4SPhilip PaepsRefer to 2311a74e6a1SRuslan Ermilov.Sx Operation Levels 23233282bf4SPhilip Paepsin 23333282bf4SPhilip Paeps.Xr psm 4 23433282bf4SPhilip Paepsfor more information on this. 2355f436cfbSKazutaka YOKOTA.It Fl m Ar N=M 2365f436cfbSKazutaka YOKOTAAssign the physical button 2375f436cfbSKazutaka YOKOTA.Ar M 2385f436cfbSKazutaka YOKOTAto the logical button 2395f436cfbSKazutaka YOKOTA.Ar N . 2405f436cfbSKazutaka YOKOTAYou may specify as many instances of this option as you like. 2415f436cfbSKazutaka YOKOTAMore than one physical button may be assigned to a logical button at the 242f2e366a1SSheldon Hearnsame time. 243f2e366a1SSheldon HearnIn this case the logical button will be down, 2445f436cfbSKazutaka YOKOTAif either of the assigned physical buttons is held down. 24559bd9500SSimon L. B. NielsenDo not put space around 24659bd9500SSimon L. B. Nielsen.Ql = . 24794a804c5SMike Pritchard.It Fl p Ar port 24894a804c5SMike PritchardUse 24994a804c5SMike Pritchard.Ar port 2505f436cfbSKazutaka YOKOTAto communicate with the mouse. 2515f436cfbSKazutaka YOKOTA.It Fl r Ar resolution 2525f436cfbSKazutaka YOKOTASet the resolution of the device; in Dots Per Inch, or 2535f436cfbSKazutaka YOKOTA.Ar low , 2545f436cfbSKazutaka YOKOTA.Ar medium-low , 2555f436cfbSKazutaka YOKOTA.Ar medium-high 2565f436cfbSKazutaka YOKOTAor 2575f436cfbSKazutaka YOKOTA.Ar high . 2585f436cfbSKazutaka YOKOTAThis option may not be supported by all the device. 25994a804c5SMike Pritchard.It Fl s 26094a804c5SMike PritchardSelect a baudrate of 9600 for the serial line. 2615f436cfbSKazutaka YOKOTANot all serial mice support this option. 2625f436cfbSKazutaka YOKOTA.It Fl t Ar type 263f8b013e2SKazutaka YOKOTASpecify the protocol type of the mouse attached to the port. 26430ee7535SKazutaka YOKOTAYou may explicitly specify a type listed below, or use 26530ee7535SKazutaka YOKOTA.Ar auto 26630ee7535SKazutaka YOKOTAto let the 267f8b013e2SKazutaka YOKOTA.Nm 26875c07b90SChristian Bruefferutility automatically select an appropriate protocol for the given 26930ee7535SKazutaka YOKOTAmouse. 27075c07b90SChristian BruefferIf you entirely omit this option in the command line, 27130ee7535SKazutaka YOKOTA.Fl t Ar auto 27230ee7535SKazutaka YOKOTAis assumed. 27330ee7535SKazutaka YOKOTAUnder normal circumstances, 27430ee7535SKazutaka YOKOTAyou need to use this option only if the 27530ee7535SKazutaka YOKOTA.Nm 276490d5836SPhilippe Charnierutility is not able to detect the protocol automatically 27775c07b90SChristian Brueffer(see 278c4d9468eSRuslan Ermilov.Sx "Configuring Mouse Daemon" ) . 279f8b013e2SKazutaka YOKOTA.Pp 2809e65e45bSKazutaka YOKOTANote that if a protocol type is specified with this option, the 28130ee7535SKazutaka YOKOTA.Fl P 28230ee7535SKazutaka YOKOTAoption above is implied and Plug and Play COM device enumeration 28330ee7535SKazutaka YOKOTAprocedure will be disabled. 28430ee7535SKazutaka YOKOTA.Pp 2859e65e45bSKazutaka YOKOTAAlso note that if your mouse is attached to the PS/2 mouse port, you should 2869e65e45bSKazutaka YOKOTAalways choose 2879e65e45bSKazutaka YOKOTA.Ar auto 2889e65e45bSKazutaka YOKOTAor 2899e65e45bSKazutaka YOKOTA.Ar ps/2 , 29007bfccd7SRuslan Ermilovregardless of the brand and model of the mouse. 29107bfccd7SRuslan ErmilovLikewise, if your 2929e65e45bSKazutaka YOKOTAmouse is attached to the bus mouse port, choose 2939e65e45bSKazutaka YOKOTA.Ar auto 2949e65e45bSKazutaka YOKOTAor 2959e65e45bSKazutaka YOKOTA.Ar busmouse . 2969e65e45bSKazutaka YOKOTASerial mouse protocols will not work with these mice. 2979e65e45bSKazutaka YOKOTA.Pp 298045c8108SKazutaka YOKOTAFor the USB mouse, the protocol must be 299045c8108SKazutaka YOKOTA.Ar auto . 300045c8108SKazutaka YOKOTANo other protocol will work with the USB mouse. 301045c8108SKazutaka YOKOTA.Pp 302f8b013e2SKazutaka YOKOTAValid types for this option are 3035f436cfbSKazutaka YOKOTAlisted below. 30494a804c5SMike Pritchard.Pp 3055f436cfbSKazutaka YOKOTAFor the serial mouse: 30694a804c5SMike Pritchard.Bl -tag -compact -width mousesystemsxxx 3075f436cfbSKazutaka YOKOTA.It Ar microsoft 30807bfccd7SRuslan ErmilovMicrosoft serial mouse protocol. 30907bfccd7SRuslan ErmilovMost 2-button serial mice use this protocol. 3105f436cfbSKazutaka YOKOTA.It Ar intellimouse 31107bfccd7SRuslan ErmilovMicrosoft IntelliMouse protocol. 31207bfccd7SRuslan ErmilovGenius NetMouse, 313490d5836SPhilippe Charnier.Tn ASCII 314490d5836SPhilippe CharnierMie Mouse, 3155f436cfbSKazutaka YOKOTALogitech MouseMan+ and FirstMouse+ use this protocol too. 3165f436cfbSKazutaka YOKOTAOther mice with a roller/wheel may be compatible with this protocol. 3175f436cfbSKazutaka YOKOTA.It Ar mousesystems 31807bfccd7SRuslan ErmilovMouseSystems 5-byte protocol. 31907bfccd7SRuslan Ermilov3-button mice may use this protocol. 3205f436cfbSKazutaka YOKOTA.It Ar mmseries 3215f436cfbSKazutaka YOKOTAMM Series mouse protocol. 3225f436cfbSKazutaka YOKOTA.It Ar logitech 32307bfccd7SRuslan ErmilovLogitech mouse protocol. 32407bfccd7SRuslan ErmilovNote that this is for old Logitech models. 3255f436cfbSKazutaka YOKOTA.Ar mouseman 3265f436cfbSKazutaka YOKOTAor 3275f436cfbSKazutaka YOKOTA.Ar intellimouse 3285f436cfbSKazutaka YOKOTAshould be specified for newer models. 3295f436cfbSKazutaka YOKOTA.It Ar mouseman 33007bfccd7SRuslan ErmilovLogitech MouseMan and TrackMan protocol. 33107bfccd7SRuslan ErmilovSome 3-button mice may be compatible 33207bfccd7SRuslan Ermilovwith this protocol. 33307bfccd7SRuslan ErmilovNote that MouseMan+ and FirstMouse+ use 3345f436cfbSKazutaka YOKOTA.Ar intellimouse 3355f436cfbSKazutaka YOKOTAprotocol rather than this one. 3365f436cfbSKazutaka YOKOTA.It Ar glidepoint 3375f436cfbSKazutaka YOKOTAALPS GlidePoint protocol. 3385f436cfbSKazutaka YOKOTA.It Ar thinkingmouse 3395f436cfbSKazutaka YOKOTAKensington ThinkingMouse protocol. 340929cbbf2SDoug White.It Ar mmhitab 3415f436cfbSKazutaka YOKOTAHitachi tablet protocol. 34267978692SAmancio Hasty.It Ar x10mouseremote 34367978692SAmancio HastyX10 MouseRemote. 3441b11ca6cSKazutaka YOKOTA.It Ar kidspad 3451b11ca6cSKazutaka YOKOTAGenius Kidspad and Easypad protocol. 3462e09fb67SKazutaka YOKOTA.It Ar versapad 3472e09fb67SKazutaka YOKOTAInterlink VersaPad protocol. 34894a804c5SMike Pritchard.El 3495f436cfbSKazutaka YOKOTA.Pp 3505f436cfbSKazutaka YOKOTAFor the bus and InPort mouse: 3515f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 3525f436cfbSKazutaka YOKOTA.It Ar busmouse 3535f436cfbSKazutaka YOKOTAThis is the only protocol type available for 3545f436cfbSKazutaka YOKOTAthe bus and InPort mouse and should be specified for any bus mice 3555f436cfbSKazutaka YOKOTAand InPort mice, regardless of the brand. 3565f436cfbSKazutaka YOKOTA.El 3575f436cfbSKazutaka YOKOTA.Pp 3585f436cfbSKazutaka YOKOTAFor the PS/2 mouse: 3595f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 3605f436cfbSKazutaka YOKOTA.It Ar ps/2 3615f436cfbSKazutaka YOKOTAThis is the only protocol type available for the PS/2 mouse 3625f436cfbSKazutaka YOKOTAand should be specified for any PS/2 mice, regardless of the brand. 3635f436cfbSKazutaka YOKOTA.El 364045c8108SKazutaka YOKOTA.Pp 365045c8108SKazutaka YOKOTAFor the USB mouse, 366045c8108SKazutaka YOKOTA.Ar auto 367045c8108SKazutaka YOKOTAis the only protocol type available for the USB mouse 368045c8108SKazutaka YOKOTAand should be specified for any USB mice, regardless of the brand. 3699fb1d70cSKazutaka YOKOTA.It Fl w Ar N 3709fb1d70cSKazutaka YOKOTAMake the physical button 3719fb1d70cSKazutaka YOKOTA.Ar N 3729fb1d70cSKazutaka YOKOTAact as the wheel mode button. 3739fb1d70cSKazutaka YOKOTAWhile this button is pressed, X and Y axis movement is reported to be zero 3749fb1d70cSKazutaka YOKOTAand the Y axis movement is mapped to Z axis. 3759fb1d70cSKazutaka YOKOTAYou may further map the Z axis movement to virtual buttons by the 3769fb1d70cSKazutaka YOKOTA.Fl z 3779fb1d70cSKazutaka YOKOTAoption below. 3785f436cfbSKazutaka YOKOTA.It Fl z Ar target 3795f436cfbSKazutaka YOKOTAMap Z axis (roller/wheel) movement to another axis or to virtual buttons. 3805f436cfbSKazutaka YOKOTAValid 3815f436cfbSKazutaka YOKOTA.Ar target 3825f436cfbSKazutaka YOKOTAmaybe: 3835f436cfbSKazutaka YOKOTA.Bl -tag -compact -width x__ 3845f436cfbSKazutaka YOKOTA.It Ar x 3855f436cfbSKazutaka YOKOTA.It Ar y 3865f436cfbSKazutaka YOKOTAX or Y axis movement will be reported when the Z axis movement is detected. 3875f436cfbSKazutaka YOKOTA.It Ar N 388f5c73cbbSKazutaka YOKOTAReport down events for the virtual buttons 3895f436cfbSKazutaka YOKOTA.Ar N 3905f436cfbSKazutaka YOKOTAand 3915f436cfbSKazutaka YOKOTA.Ar N+1 392f5c73cbbSKazutaka YOKOTArespectively when negative and positive Z axis movement 393f2e366a1SSheldon Hearnis detected. 394f5c73cbbSKazutaka YOKOTAThere do not need to be physical buttons 3955f436cfbSKazutaka YOKOTA.Ar N 3965f436cfbSKazutaka YOKOTAand 3975f436cfbSKazutaka YOKOTA.Ar N+1 . 3985f436cfbSKazutaka YOKOTANote that mapping to logical buttons is carried out after mapping 3995f436cfbSKazutaka YOKOTAfrom the Z axis movement to the virtual buttons is done. 400e68b10b3SKazutaka YOKOTA.It Ar N1 N2 401f5c73cbbSKazutaka YOKOTAReport down events for the virtual buttons 402e68b10b3SKazutaka YOKOTA.Ar N1 403e68b10b3SKazutaka YOKOTAand 404e68b10b3SKazutaka YOKOTA.Ar N2 405f5c73cbbSKazutaka YOKOTArespectively when negative and positive Z axis movement 406e68b10b3SKazutaka YOKOTAis detected. 407e68b10b3SKazutaka YOKOTA.It Ar N1 N2 N3 N4 408e68b10b3SKazutaka YOKOTAThis is useful for the mouse with two wheels of which 409e68b10b3SKazutaka YOKOTAthe second wheel is used to generate horizontal scroll action, 410e68b10b3SKazutaka YOKOTAand for the mouse which has a knob or a stick which can detect 411e68b10b3SKazutaka YOKOTAthe horizontal force applied by the user. 412e68b10b3SKazutaka YOKOTA.Pp 413e68b10b3SKazutaka YOKOTAThe motion of the second wheel will be mapped to the buttons 414e68b10b3SKazutaka YOKOTA.Ar N3 , 415e68b10b3SKazutaka YOKOTAfor the negative direction, and 416e68b10b3SKazutaka YOKOTA.Ar N4 , 417e68b10b3SKazutaka YOKOTAfor the positive direction. 418e68b10b3SKazutaka YOKOTAIf the buttons 419e68b10b3SKazutaka YOKOTA.Ar N3 420e68b10b3SKazutaka YOKOTAand 421e68b10b3SKazutaka YOKOTA.Ar N4 422f5c73cbbSKazutaka YOKOTAactually exist in this mouse, their actions will not be detected. 423e68b10b3SKazutaka YOKOTA.Pp 424e68b10b3SKazutaka YOKOTANote that horizontal movement or second roller/wheel movement may not 425e68b10b3SKazutaka YOKOTAalways be detected, 426e68b10b3SKazutaka YOKOTAbecause there appears to be no accepted standard as to how it is encoded. 427e68b10b3SKazutaka YOKOTA.Pp 42875c07b90SChristian BruefferNote also that some mice think left is the negative horizontal direction; 429e68b10b3SKazutaka YOKOTAothers may think otherwise. 430e68b10b3SKazutaka YOKOTAMoreover, there are some mice whose two wheels are both mounted vertically, 431e68b10b3SKazutaka YOKOTAand the direction of the second vertical wheel does not match the 43275c07b90SChristian Bruefferfirst one. 4335f436cfbSKazutaka YOKOTA.El 4345f436cfbSKazutaka YOKOTA.El 435f8b013e2SKazutaka YOKOTA.Ss Configuring Mouse Daemon 4365f436cfbSKazutaka YOKOTAThe first thing you need to know is the interface type 4375f436cfbSKazutaka YOKOTAof the mouse you are going to use. 4385f436cfbSKazutaka YOKOTAIt can be determined by looking at the connector of the mouse. 4395f436cfbSKazutaka YOKOTAThe serial mouse has a D-Sub female 9- or 25-pin connector. 4405f436cfbSKazutaka YOKOTAThe bus and InPort mice have either a D-Sub male 9-pin connector 4415f436cfbSKazutaka YOKOTAor a round DIN 9-pin connector. 4425f436cfbSKazutaka YOKOTAThe PS/2 mouse is equipped with a small, round DIN 6-pin connector. 4435f436cfbSKazutaka YOKOTASome mice come with adapters with which the connector can 44407bfccd7SRuslan Ermilovbe converted to another. 44507bfccd7SRuslan ErmilovIf you are to use such an adapter, 4465f436cfbSKazutaka YOKOTAremember the connector at the very end of the mouse/adapter pair is 4475f436cfbSKazutaka YOKOTAwhat matters. 448045c8108SKazutaka YOKOTAThe USB mouse has a flat rectangular connector. 4495f436cfbSKazutaka YOKOTA.Pp 4505f436cfbSKazutaka YOKOTAThe next thing to decide is a port to use for the given interface. 4515f436cfbSKazutaka YOKOTAFor the bus, InPort and PS/2 mice, there is little choice: 4525f436cfbSKazutaka YOKOTAthe bus and InPort mice always use 4535f436cfbSKazutaka YOKOTA.Pa /dev/mse0 , 4545f436cfbSKazutaka YOKOTAand the PS/2 mouse is always at 4555f436cfbSKazutaka YOKOTA.Pa /dev/psm0 . 4565f436cfbSKazutaka YOKOTAThere may be more than one serial port to which the serial 45707bfccd7SRuslan Ermilovmouse can be attached. 45807bfccd7SRuslan ErmilovMany people often assign the first, built-in 4595f436cfbSKazutaka YOKOTAserial port 460d0139887SPhilip Paeps.Pa /dev/cuad0 4615f436cfbSKazutaka YOKOTAto the mouse. 462045c8108SKazutaka YOKOTAYou can attach multiple USB mice to your system or to your USB hub. 463045c8108SKazutaka YOKOTAThey are accessible as 464045c8108SKazutaka YOKOTA.Pa /dev/ums0 , /dev/ums1 , 465045c8108SKazutaka YOKOTAand so on. 46659bd9500SSimon L. B. Nielsen.Pp 4675f436cfbSKazutaka YOKOTAYou may want to create a symbolic link 4685f436cfbSKazutaka YOKOTA.Pa /dev/mouse 4695f436cfbSKazutaka YOKOTApointing to the real port to which the mouse is connected, so that you 47059bd9500SSimon L. B. Nielsencan easily distinguish which is your 47159bd9500SSimon L. B. Nielsen.Dq mouse 47259bd9500SSimon L. B. Nielsenport later. 4735f436cfbSKazutaka YOKOTA.Pp 4745f436cfbSKazutaka YOKOTAThe next step is to guess the appropriate protocol type for the mouse. 4755f436cfbSKazutaka YOKOTAThe 4765f436cfbSKazutaka YOKOTA.Nm 477490d5836SPhilippe Charnierutility may be able to automatically determine the protocol type. 4785f436cfbSKazutaka YOKOTARun the 4795f436cfbSKazutaka YOKOTA.Nm 480490d5836SPhilippe Charnierutility with the 4815f436cfbSKazutaka YOKOTA.Fl i 48207bfccd7SRuslan Ermilovoption and see what it says. 48307bfccd7SRuslan ErmilovIf the command can identify 4845f436cfbSKazutaka YOKOTAthe protocol type, no further investigation is necessary on your part. 4855f436cfbSKazutaka YOKOTAYou may start the daemon without explicitly specifying a protocol type 486c4d9468eSRuslan Ermilov(see 487c4d9468eSRuslan Ermilov.Sx EXAMPLES ) . 4885f436cfbSKazutaka YOKOTA.Pp 4895f436cfbSKazutaka YOKOTAThe command may print 4905f436cfbSKazutaka YOKOTA.Ar sysmouse 4915f436cfbSKazutaka YOKOTAif the mouse driver supports this protocol type. 4925f436cfbSKazutaka YOKOTA.Pp 4935f436cfbSKazutaka YOKOTANote that the 4945f436cfbSKazutaka YOKOTA.Dv type 4955f436cfbSKazutaka YOKOTAand 4965f436cfbSKazutaka YOKOTA.Dv model 4975f436cfbSKazutaka YOKOTAprinted by the 4985f436cfbSKazutaka YOKOTA.Fl i 4995f436cfbSKazutaka YOKOTAoption do not necessarily match the product name of the pointing device 5005f436cfbSKazutaka YOKOTAin question, but they may give the name of the device with which it is 5015f436cfbSKazutaka YOKOTAcompatible. 5025f436cfbSKazutaka YOKOTA.Pp 5035f436cfbSKazutaka YOKOTAIf the 5045f436cfbSKazutaka YOKOTA.Fl i 5055f436cfbSKazutaka YOKOTAoption yields nothing, you need to specify a protocol type to the 5065f436cfbSKazutaka YOKOTA.Nm 507490d5836SPhilippe Charnierutility by the 5085f436cfbSKazutaka YOKOTA.Fl t 509f2e366a1SSheldon Hearnoption. 510f2e366a1SSheldon HearnYou have to make a guess and try. 5115f436cfbSKazutaka YOKOTAThere is rule of thumb: 5125f436cfbSKazutaka YOKOTA.Pp 513610a5778SRuslan Ermilov.Bl -enum -compact -width 1.X 514610a5778SRuslan Ermilov.It 5155f436cfbSKazutaka YOKOTAThe bus and InPort mice always use 5165f436cfbSKazutaka YOKOTA.Ar busmouse 5175f436cfbSKazutaka YOKOTAprotocol regardless of the brand of the mouse. 518610a5778SRuslan Ermilov.It 5195f436cfbSKazutaka YOKOTAThe 5205f436cfbSKazutaka YOKOTA.Ar ps/2 5215f436cfbSKazutaka YOKOTAprotocol should always be specified for the PS/2 mouse 5225f436cfbSKazutaka YOKOTAregardless of the brand of the mouse. 523610a5778SRuslan Ermilov.It 524045c8108SKazutaka YOKOTAYou must specify the 525045c8108SKazutaka YOKOTA.Ar auto 526045c8108SKazutaka YOKOTAprotocol for the USB mouse. 527610a5778SRuslan Ermilov.It 5285f436cfbSKazutaka YOKOTAMost 2-button serial mice support the 5295f436cfbSKazutaka YOKOTA.Ar microsoft 5305f436cfbSKazutaka YOKOTAprotocol. 531610a5778SRuslan Ermilov.It 5325f436cfbSKazutaka YOKOTA3-button serial mice may work with the 5335f436cfbSKazutaka YOKOTA.Ar mousesystems 534f2e366a1SSheldon Hearnprotocol. 535f5c73cbbSKazutaka YOKOTAIf it does not, it may work with the 5365f436cfbSKazutaka YOKOTA.Ar microsoft 5375f436cfbSKazutaka YOKOTAprotocol although 538f5c73cbbSKazutaka YOKOTAthe third (middle) button will not function. 5395f436cfbSKazutaka YOKOTA3-button serial mice may also work with the 5405f436cfbSKazutaka YOKOTA.Ar mouseman 5415f436cfbSKazutaka YOKOTAprotocol under which the third button may function as expected. 542610a5778SRuslan Ermilov.It 54359bd9500SSimon L. B. Nielsen3-button serial mice may have a small switch to choose between 54459bd9500SSimon L. B. Nielsen.Dq MS 54559bd9500SSimon L. B. Nielsenand 54659bd9500SSimon L. B. Nielsen.Dq PC , 54759bd9500SSimon L. B. Nielsenor 54859bd9500SSimon L. B. Nielsen.Dq 2 54959bd9500SSimon L. B. Nielsenand 55059bd9500SSimon L. B. Nielsen.Dq 3 . 55159bd9500SSimon L. B. Nielsen.Dq MS 55259bd9500SSimon L. B. Nielsenor 55359bd9500SSimon L. B. Nielsen.Dq 2 55459bd9500SSimon L. B. Nielsenusually mean the 5555f436cfbSKazutaka YOKOTA.Ar microsoft 5565f436cfbSKazutaka YOKOTAprotocol. 55759bd9500SSimon L. B. Nielsen.Dq PC 55859bd9500SSimon L. B. Nielsenor 55959bd9500SSimon L. B. Nielsen.Dq 3 56059bd9500SSimon L. B. Nielsenwill choose the 5615f436cfbSKazutaka YOKOTA.Ar mousesystems 5625f436cfbSKazutaka YOKOTAprotocol. 563610a5778SRuslan Ermilov.It 5645f436cfbSKazutaka YOKOTAIf the mouse has a roller or a wheel, it may be compatible with the 5655f436cfbSKazutaka YOKOTA.Ar intellimouse 5665f436cfbSKazutaka YOKOTAprotocol. 5675f436cfbSKazutaka YOKOTA.El 5685f436cfbSKazutaka YOKOTA.Pp 5695f436cfbSKazutaka YOKOTATo test if the selected protocol type is correct for the given mouse, 5705f436cfbSKazutaka YOKOTAenable the mouse pointer in the current virtual console, 5715f436cfbSKazutaka YOKOTA.Pp 5725f436cfbSKazutaka YOKOTA.Dl vidcontrol -m on 5735f436cfbSKazutaka YOKOTA.Pp 5745f436cfbSKazutaka YOKOTAstart the mouse daemon in the foreground mode, 5755f436cfbSKazutaka YOKOTA.Pp 5765f436cfbSKazutaka YOKOTA.Dl moused -f -p Ar _selected_port_ -t Ar _selected_protocol_ 5775f436cfbSKazutaka YOKOTA.Pp 5785f436cfbSKazutaka YOKOTAand see if the mouse pointer travels correctly 579f2e366a1SSheldon Hearnaccording to the mouse movement. 580f2e366a1SSheldon HearnThen try cut & paste features by 581f2e366a1SSheldon Hearnclicking the left, right and middle buttons. 582f2e366a1SSheldon HearnType ^C to stop 5835f436cfbSKazutaka YOKOTAthe command. 5845f436cfbSKazutaka YOKOTA.Ss Multiple Mice 5855f436cfbSKazutaka YOKOTAAs many instances of the mouse daemon as the number of mice attached to 5865f436cfbSKazutaka YOKOTAthe system may be run simultaneously; one 5875f436cfbSKazutaka YOKOTAinstance for each mouse. 5885f436cfbSKazutaka YOKOTAThis is useful if the user wants to use the built-in PS/2 pointing device 5895f436cfbSKazutaka YOKOTAof a laptop computer while on the road, but wants to use a serial 5905f436cfbSKazutaka YOKOTAmouse when s/he attaches the system to the docking station in the office. 5915f436cfbSKazutaka YOKOTARun two mouse daemons and tell the application program 592c4d9468eSRuslan Ermilov(such as the 593c4d9468eSRuslan Ermilov.Tn "X\ Window System" ) 5945f436cfbSKazutaka YOKOTAto use 595f84e4bb7SPhilippe Charnier.Xr sysmouse 4 , 59675c07b90SChristian Bruefferthen the application program will always see mouse data from either mouse. 5975f436cfbSKazutaka YOKOTAWhen the serial mouse is not attached, the corresponding mouse daemon 598f5c73cbbSKazutaka YOKOTAwill not detect any movement or button state change and the application 5995f436cfbSKazutaka YOKOTAprogram will only see mouse data coming from the daemon for the 600f2e366a1SSheldon HearnPS/2 mouse. 601f2e366a1SSheldon HearnIn contrast when both mice are attached and both of them 6025f436cfbSKazutaka YOKOTAare moved at the same time in this configuration, 6035f436cfbSKazutaka YOKOTAthe mouse pointer will travel across the screen just as if movement of 6045f436cfbSKazutaka YOKOTAthe mice is combined all together. 6055f436cfbSKazutaka YOKOTA.Sh FILES 6065f436cfbSKazutaka YOKOTA.Bl -tag -width /dev/consolectl -compact 6075f436cfbSKazutaka YOKOTA.It Pa /dev/consolectl 6085f436cfbSKazutaka YOKOTAdevice to control the console 6095f436cfbSKazutaka YOKOTA.It Pa /dev/mse%d 6105f436cfbSKazutaka YOKOTAbus and InPort mouse driver 6115f436cfbSKazutaka YOKOTA.It Pa /dev/psm%d 6125f436cfbSKazutaka YOKOTAPS/2 mouse driver 6135f436cfbSKazutaka YOKOTA.It Pa /dev/sysmouse 6145f436cfbSKazutaka YOKOTAvirtualized mouse driver 6155f436cfbSKazutaka YOKOTA.It Pa /dev/ttyv%d 6165f436cfbSKazutaka YOKOTAvirtual consoles 617045c8108SKazutaka YOKOTA.It Pa /dev/ums%d 618045c8108SKazutaka YOKOTAUSB mouse driver 619f82812a2SKazutaka YOKOTA.It Pa /var/run/moused.pid 620f82812a2SKazutaka YOKOTAprocess id of the currently running 621f82812a2SKazutaka YOKOTA.Nm 622490d5836SPhilippe Charnierutility 62367978692SAmancio Hasty.It Pa /var/run/MouseRemote 62467978692SAmancio HastyUNIX-domain stream socket for X10 MouseRemote events 62594a804c5SMike Pritchard.El 626251c176fSRuslan Ermilov.Sh EXAMPLES 627d0139887SPhilip Paeps.Dl moused -p /dev/cuad0 -i type 6285f436cfbSKazutaka YOKOTA.Pp 6295f436cfbSKazutaka YOKOTALet the 6305f436cfbSKazutaka YOKOTA.Nm 631490d5836SPhilippe Charnierutility determine the protocol type of the mouse at the serial port 632d0139887SPhilip Paeps.Pa /dev/cuad0 . 6335f436cfbSKazutaka YOKOTAIf successful, the command will print the type, otherwise it will say 63459bd9500SSimon L. B. Nielsen.Dq Li unknown . 6355f436cfbSKazutaka YOKOTA.Pp 636d0139887SPhilip Paeps.Dl moused -p /dev/cuad0 637bf29452fSWolfram Schneider.Dl vidcontrol -m on 638bf29452fSWolfram Schneider.Pp 6395f436cfbSKazutaka YOKOTAIf the 6405f436cfbSKazutaka YOKOTA.Nm 641490d5836SPhilippe Charnierutility is able to identify the protocol type of the mouse at the specified 6425f436cfbSKazutaka YOKOTAport automatically, you can start the daemon without the 6435f436cfbSKazutaka YOKOTA.Fl t 6445f436cfbSKazutaka YOKOTAoption and enable the mouse pointer in the text console as above. 6455f436cfbSKazutaka YOKOTA.Pp 6465f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -t microsoft 6475f436cfbSKazutaka YOKOTA.Dl vidcontrol -m on 6485f436cfbSKazutaka YOKOTA.Pp 6495f436cfbSKazutaka YOKOTAStart the mouse daemon on the serial port 6505f436cfbSKazutaka YOKOTA.Pa /dev/mouse . 6515f436cfbSKazutaka YOKOTAThe protocol type 6525f436cfbSKazutaka YOKOTA.Ar microsoft 6535f436cfbSKazutaka YOKOTAis explicitly specified by the 6545f436cfbSKazutaka YOKOTA.Fl t 6555f436cfbSKazutaka YOKOTAoption. 6565f436cfbSKazutaka YOKOTA.Pp 6575f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -m 1=3 -m 3=1 6585f436cfbSKazutaka YOKOTA.Pp 6595f436cfbSKazutaka YOKOTAAssign the physical button 3 (right button) to the logical button 1 6605f436cfbSKazutaka YOKOTA(logical left) and the physical button 1 (left) to the logical 6615f436cfbSKazutaka YOKOTAbutton 3 (logical right). 6625f436cfbSKazutaka YOKOTAThis will effectively swap the left and right buttons. 6635f436cfbSKazutaka YOKOTA.Pp 6645f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -t intellimouse -z 4 6655f436cfbSKazutaka YOKOTA.Pp 6660d64fcd8SDavid E. O'BrienReport negative Z axis movement (i.e., mouse wheel) as the button 4 pressed 6670d64fcd8SDavid E. O'Brienand positive Z axis movement (i.e., mouse wheel) as the button 5 pressed. 6685f436cfbSKazutaka YOKOTA.Sh CAVEATS 6695f436cfbSKazutaka YOKOTAThe 6705f436cfbSKazutaka YOKOTA.Nm 671490d5836SPhilippe Charnierutility does not currently work with the alternative console driver 6725f436cfbSKazutaka YOKOTA.Xr pcvt 4 . 6735f436cfbSKazutaka YOKOTA.Pp 6745f436cfbSKazutaka YOKOTAMany pad devices behave as if the first (left) button were pressed if 67559bd9500SSimon L. B. Nielsenthe user 67659bd9500SSimon L. B. Nielsen.Dq taps 67759bd9500SSimon L. B. Nielsenthe surface of the pad. 6782e09fb67SKazutaka YOKOTAIn contrast, some ALPS GlidePoint and Interlink VersaPad models 6792e09fb67SKazutaka YOKOTAtreat the tapping action 680f2e366a1SSheldon Hearnas fourth button events. 68159bd9500SSimon L. B. NielsenUse the option 68259bd9500SSimon L. B. Nielsen.Dq Fl m Li 1=4 68359bd9500SSimon L. B. Nielsenfor these models 6845f436cfbSKazutaka YOKOTAto obtain the same effect as the other pad devices. 685851c9886SKazutaka YOKOTA.Pp 686851c9886SKazutaka YOKOTACut and paste functions in the virtual console assume that there 687851c9886SKazutaka YOKOTAare three buttons on the mouse. 688851c9886SKazutaka YOKOTAThe logical button 1 (logical left) selects a region of text in the 689851c9886SKazutaka YOKOTAconsole and copies it to the cut buffer. 690851c9886SKazutaka YOKOTAThe logical button 3 (logical right) extends the selected region. 691851c9886SKazutaka YOKOTAThe logical button 2 (logical middle) pastes the selected text 692851c9886SKazutaka YOKOTAat the text cursor position. 693851c9886SKazutaka YOKOTAIf the mouse has only two buttons, the middle, `paste' button 694851c9886SKazutaka YOKOTAis not available. 695851c9886SKazutaka YOKOTATo obtain the paste function, use the 696851c9886SKazutaka YOKOTA.Fl 3 697851c9886SKazutaka YOKOTAoption to emulate the middle button, or use the 698851c9886SKazutaka YOKOTA.Fl m 699851c9886SKazutaka YOKOTAoption to assign the physical right button to the logical middle button: 70059bd9500SSimon L. B. Nielsen.Dq Fl m Li 2=3 . 70194a804c5SMike Pritchard.Sh SEE ALSO 7025f436cfbSKazutaka YOKOTA.Xr kill 1 , 7035cf470d6SWolfram Schneider.Xr vidcontrol 1 , 70494a804c5SMike Pritchard.Xr keyboard 4 , 7055f436cfbSKazutaka YOKOTA.Xr mse 4 , 70694a804c5SMike Pritchard.Xr pcvt 4 , 7075f436cfbSKazutaka YOKOTA.Xr psm 4 , 708b7d50183SWolfram Schneider.Xr screen 4 , 709045c8108SKazutaka YOKOTA.Xr sysmouse 4 , 710045c8108SKazutaka YOKOTA.Xr ums 4 711251c176fSRuslan Ermilov.Sh STANDARDS 7125f436cfbSKazutaka YOKOTAThe 7135f436cfbSKazutaka YOKOTA.Nm 714490d5836SPhilippe Charnierutility partially supports 71579d8f01cSAlexey Zelkin.Dq Plug and Play External COM Device Specification 7165f436cfbSKazutaka YOKOTAin order to support PnP serial mice. 7175f436cfbSKazutaka YOKOTAHowever, due to various degrees of conformance to the specification by 7185f436cfbSKazutaka YOKOTAexisting serial mice, it does not strictly follow the version 1.0 of the 719f2e366a1SSheldon Hearnstandard. 720f2e366a1SSheldon HearnEven with this less strict approach, 7215f436cfbSKazutaka YOKOTAit may not always determine an appropriate protocol type 7225f436cfbSKazutaka YOKOTAfor the given serial mouse. 72394a804c5SMike Pritchard.Sh AUTHORS 724f4d874a1SRuslan Ermilov.An -nosplit 72594a804c5SMike PritchardThe 72694a804c5SMike Pritchard.Nm 727490d5836SPhilippe Charnierutility was written by 7282dcf9f10SSteve Price.An Michael Smith Aq msmith@FreeBSD.org . 7295f436cfbSKazutaka YOKOTAThis manual page was written by 73007e1d533SPhilippe Charnier.An Mike Pritchard Aq mpp@FreeBSD.org . 7312dcf9f10SSteve PriceThe command and manual page have since been updated by 7322dcf9f10SSteve Price.An Kazutaka Yokota Aq yokota@FreeBSD.org . 73394a804c5SMike Pritchard.Sh HISTORY 73494a804c5SMike PritchardThe 73507e1d533SPhilippe Charnier.Nm 736490d5836SPhilippe Charnierutility first appeared in 73794a804c5SMike Pritchard.Fx 2.2 . 738