Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 5.2

(Apollo)

mouse(4)


MOUSE

MOUSE

NAME
CONFIG
DESCRIPTION
FILES
SEE ALSO

NAME

mouse − serial mouse interface

CONFIG

Serial mice are connected to a serial RS232/V24 dialout line, see cua(4) for a description.

DESCRIPTION

Introduction
The pinout of the usual 9 pin plug as used for serial mice is:

Image /web_man_pages/man_unzipped/en/redhat/5/5.21.png

This is the specification, in fact 9 V suffices with most mice.

The mouse driver can recognize a mouse by dropping RTS to low. About 14 ms later the mouse will send 0x4D on the data line. After a further 63 ms, Microsoft-compatible mice will send 0x33. Other mice send different values.

The relative mouse movement is sent as dx (positive means right) and dy (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:

Image /web_man_pages/man_unzipped/en/redhat/5/5.22.png

The first byte of a data packet can be used to synchronisation purposes.

Microsoft protocol
The Microsoft 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 dx and dy movements are sent as two’s-complement, lb (rb) are set when the left (right) button is pressed:

Image /web_man_pages/man_unzipped/en/redhat/5/5.23.png

Original Microsoft mice only have two buttons. However, there are some three button mice which also use the Microsoft protocol. Pressing the third button is reported by sending a packet with zero movement and no buttons pressed.

Mousesystems protocol
The Mousesystems 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 5-byte packets. dx is sent as the sum of the two two’s-complement values, dy is send as negated sum of the two two’s-complement values. lb (mb, rb) are cleared when the left (middle, right) button is pressed:

Image /web_man_pages/man_unzipped/en/redhat/5/5.24.png

Sun protocol
The Sun 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 3-byte packets. dx is sent as single two’s-complement value, dy as negated two’s-complement value. lb (mb, rb) are cleared when the left (middle, right) button is pressed:

Image /web_man_pages/man_unzipped/en/redhat/5/5.25.png

MM protocol
The MM 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 packets. dx and dy are sent as single signed values, the sign bit indicating a negative value. lb (mb, rb) are set when the left (middle, right) button is pressed:

Image /web_man_pages/man_unzipped/en/redhat/5/5.26.png

FILES

/dev/mouse

a commonly used symlink pointing to a mouse device

SEE ALSO

cua(4), bm(4)



mouse(4)