120 lines · 2.4 KB · Text
RawDownload
.TH MOUSE 8.SH NAMEaux/mouse, aux/accupoint \- configure a mouse to a port.SH SYNOPSIS.B aux/mouse[.B -b.I baud] [.B -d.I type] [.B -n].I port.PP.B aux/accupoint.SH DESCRIPTION.B Mousequeries a mouse on a serial or PS2 port forits type and then configures the port and themouse to be used to control the cursor..PP.I Portcan be either a port number (e.g. .B 0or.BR 1 )or the string.B ps2or.BR ps2intellimouse .The initialization can be automated by setting.BR mouseportin.IR plan9.ini (8),which will enable a call to.I mousein.B termrc(see.IR cpurc (8))..PPThe option.B -dprovides a default mouse type should.B mousefail to determine it.  Thetypes are:.IP CLogitech type C mouse.IP WLogitech type W mouse.IP MMicrosoft compatible mouse.PPThe.B -nflag queries the mouse and reports its type but does not set the device type..PPThe.B -bflag sets the baud rate for communication; it is effectual only for serial mice..SH.I Accupointis a process, to be used with.IR pipefile (1),that processes events from an AccuPoint II pointing devicewith four buttons, such as on Toshiba Portégé 3440CT and 3480CTlaptops, converting events on the two extra buttons(which appear as buttons 4 and 5 in the.IR mouse (3)interface) into a simulation of button 2.These extra buttons on laptops are in turn simulations of Intellimousescrolling buttons and have peculiar properties: they generateonly `down' events that repeat automatically, like a keypad, inan approximation of the Intellimouse scroll wheel..I Accupointovercomes this behavior to produce a reasonable approximation ofa normal mouse button 2:it makes left button act like a regular button 2, but is slow to release (theprogram must wait for a repeat time before it knows the button has been released),while the right button generates a fast button 2 `click'.To use.IR accupoint ,add a line like this to.B /usr/$user/lib/profileor to a system-dependent configuration script in.B termrc(see.IR cpurc (8)):.EX.IPpipefile -dr /bin/aux/accupoint /dev/mouse.EE.PPBefore running.IR accupoint ,the mouse should be configured as an.B intellimouseor.BR ps2intellimouse ..SH SOURCE.B /sys/src/cmd/aux/mouse.c.br.B /sys/src/cmd/aux/accupoint.c.SH SEE ALSO.IR cons (3),.IR cpurc (8),.IR pipefile (1)..SH BUGSDue to the limitations of.IR pipefile (1),when running.I accupointit is difficult restart.IR rio (1)if it has exited.