From: GEC-Marconi Research Centre (ajh@gec-mrc.co.uk)
Date: 05/05/92


From: Andrew Haylett (GEC-Marconi Research Centre) <ajh@gec-mrc.co.uk>
Subject: Re: problems with selection-1.0
Date: Tue, 5 May 1992 09:55:49 GMT

jwaters@nmsu.edu (Joe Waters) writes:

| 3) I got the selection stuff patched into my kernel no problem, and
| got selection-1.0 to compile no problem. However, when I run it, it
| gives me bizarre, erratic results in response to mouse movement - the
| mouse cursor will appear, then move seemingly randomly about the
| screen, selecting random bits of text and pasting them wherever it
| feels like it, but only when I move the mouse... I have a Logitech
| series-9 3-button mouse; my hunch is that the selection driver eats it
| when dealing with this type of mouse. Has any body patched it for the
| Logitech series-9?

jwinstea@jarthur.claremont.edu (Jim Winstead Jr.) writes:

| I've had the exact same problem, and looked at the code briefly, but
| decided that it was a bit beyond my talents, since I didn't have the
| slightest clue as to what is going on with the mouse handling. I'd
| really like to use my mouse as long as I can't run X, so if anyone has
| any ideas, fire away....

| (One thing I've found out in reading my mouse manual pretty thoroughly
| - the Logitech mouse runs at 9600 baud, and I seem to recall the
| selection-1.0 code expecting the mouse to run at 1200.)

Hmmm, probably some of these problems if not all are caused by my having no
documentation at all on how mice work, what codes they return, etc. So when I
wrote the mouse-handling code, I could only test it against my (two-button)
mouse. I had mail from somebody saying that he had to put his three-button
mouse into two-button mode, then it worked. And with other folk it worked OK
without any mods. Experimenting with the baud rate setting seems a good idea;
having it set wrong would certainly give the symptoms mentioned above. I have
no idea how I could put auto-baud rate detection into the mouse handler.

I'll be putting out a new version of selection when the 0.96 kernel appears;
this one supports selection by word and line as well as by character, and
has a more xterm-like selection interface, but the mouse driver hasn't changed.
I'll also be including a simple test program, so you can check for mouse
compatibility without having to patch the kernel first.

I'll repeat my plea for information: If anyone knows of some on-line
documentation about mice at some archive site, please tell me about it.