From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 22 Oct 2004 17:09:29 -0400 From: Russ Cox To: 9fans <9fans@cse.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [9fans] scroll mouse support Topicbox-Message-UUID: f4f14c10-eacd-11e9-9e20-41e7f4b1d025 Thanks to Andrey, the kernel code on sources (you'll need to compile a new binary) has support for mice with scroll wheels. Rio and acme scroll their text windows in response to the scroll wheel. Jim and I decided that autodetection is too hard and not likely to work anyway (I've never seen XFree86 get it right), so you have to tell the kernel when you have a scroll mouse (aka intellimouse) by setting mouseport=ps2intellimouse in plan9.ini, or just by doing echo intellimouse >/dev/mousectl at some point later. Most Unix/Windows programs scroll half or full screens per click, and making things worse, different scroll mice send clicks at different rates. Rob and I played with this for a while a few months ago and settled on the following. By default, rio and acme scroll one line per click, which feels a lot smoother than big jumps. If you want some other behavior, you can set $mousescrollsize in your environment to, say, 5 (5 lines) or to 25% (quarter screen). Russ