]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man4/mouse.4
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man4 / mouse.4
index 9dd78af529e3786063dc2a5ae05f4907ef08b16e..053108c0d3ee49472d25cb8718b185bb2bb63deb 100644 (file)
@@ -11,7 +11,7 @@
 .\" manual under the conditions for verbatim copying, provided that the
 .\" entire resulting derived work is distributed under the terms of a
 .\" permission notice identical to this one.
-.\" 
+.\"
 .\" Since the Linux kernel and libraries are constantly changing, this
 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
 .\" responsibility for errors or omissions, or for damages resulting from
@@ -19,7 +19,7 @@
 .\" have taken the same level of care in the production of this manual,
 .\" which is licensed free of charge, as they might when working
 .\" professionally.
-.\" 
+.\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .TH MOUSE 4 1996-02-10 "Special files" "Linux Programmer's Manual"
@@ -46,16 +46,18 @@ pin name    used for
 This is the specification, in fact 9 V suffices with most mice.
 .PP
 The mouse driver can recognize a mouse by dropping RTS to low and raising
-it again.  About 14 ms later the mouse will send 0x4D ('M') on the data line.
+it again.
+About 14 ms later the mouse will send 0x4D ('M') on the data line.
 After a further 63 ms, a Microsoft-compatible 3-button mouse will send
 0x33 ('3').
 .PP
 The relative mouse movement is sent as \fIdx\fP (positive means right)
-and \fIdy\fP (positive means down).  Various mice can operate at different
-speeds.  To select speeds, cycle through the
+and \fIdy\fP (positive means down).
+Various mice can operate at different speeds.
+To select speeds, cycle through the
 speeds 9600, 4800, 2400 and 1200 bit/s, each time writing the two characters
-from the table below and waiting 0.1 seconds.  The following table shows
-available speeds and the strings that select them:
+from the table below and waiting 0.1 seconds.
+The following table shows available speeds and the strings that select them:
 .TS
 center;
 l l.
@@ -69,8 +71,9 @@ bit/s string
 The first byte of a data packet can be used to synchronisation purposes.
 .SS "Microsoft protocol"
 The \fBMicrosoft\fP protocol uses 1 start bit, 7 data bits, no parity
-and one stop bit at the speed of 1200 bits/sec.  Data is sent to RxD in
-3-byte packets.  The \fIdx\fP and \fIdy\fP movements are sent as
+and one stop bit at the speed of 1200 bits/sec.
+Data is sent to RxD in 3-byte packets.
+The \fIdx\fP and \fIdy\fP movements are sent as
 two's-complement, \fIlb\fP (\fIrb\fP) are set when the left (right)
 button is pressed:
 .TS
@@ -82,8 +85,10 @@ byte d6      d5      d4      d3      d2      d1      d0
 3      0       dy5     dy4     dy3     dy2     dy1     dy0
 .TE
 .SS "3-button Microsoft protocol"
-Original Microsoft mice only have two buttons.  However, there are some
-three button mice which also use the Microsoft protocol.  Pressing or
+Original Microsoft mice only have two buttons.
+However, there are some
+three button mice which also use the Microsoft protocol.
+Pressing or
 releasing the middle button is reported by sending a packet with zero
 movement and no buttons pressed.
 (Thus, unlike for the other two buttons, the status of the middle
@@ -91,13 +96,16 @@ button is not reported in each packet.)
 .SS "Logitech protocol"
 Logitech serial 3-button mice use a different extension of the
 Microsoft protocol: when the middle button is up, the above 3-byte
-packet is sent. When the middle button is down a 4-byte packet is
+packet is sent.
+When the middle button is down a 4-byte packet is
 sent, where the 4th byte has value 0x20 (or at least has the 0x20
-bit set). In particular, a press of the middle button is reported
+bit set).
+In particular, a press of the middle button is reported
 as 0,0,0,0x20 when no other buttons are down.
 .SS "Mousesystems protocol"
 The \fBMousesystems\fP protocol uses 1 start bit, 8 data bits, no parity
-and two stop bits at the speed of 1200 bits/sec.  Data is sent to RxD in
+and two stop bits at the speed of 1200 bits/sec.
+Data is sent to RxD in
 5-byte packets.  \fIdx\fP is sent as the sum of the two two's-complement
 values, \fIdy\fP is send as negated sum of the two two's-complement
 values.  \fIlb\fP (\fImb\fP, \fIrb\fP) are cleared when the left (middle,
@@ -120,9 +128,11 @@ The \fBSun\fP protocol is the 3-byte version of the above 5-byte
 Mousesystems protocol: the last two bytes are not sent.
 .SS "MM protocol"
 The \fBMM\fP protocol uses 1 start bit, 8 data bits, odd parity and one
-stop bit at the speed of 1200 bits/sec.  Data is sent to RxD in 3-byte
+stop bit at the speed of 1200 bits/sec.
+Data is sent to RxD in 3-byte
 packets.  \fIdx\fP and \fIdy\fP are sent as single signed values, the
-sign bit indicating a negative value.  \fIlb\fP (\fImb\fP, \fIrb\fP) are
+sign bit indicating a negative value.
+\fIlb\fP (\fImb\fP, \fIrb\fP) are
 set when the left (middle, right) button is pressed:
 .TS
 center;