MOUSE(8)                                                 MOUSE(8)

     NAME
          aux/mouse, aux/accupoint - configure a mouse to a port

     SYNOPSIS
          aux/mouse [ -b baud ] [ -d type ] [ -n ] port

          aux/accupoint

     DESCRIPTION
          Mouse queries a mouse on a serial or PS2 port for its type
          and then configures the port and the mouse to be used to
          control the cursor.

          Port can be either a port number (e.g. 0 or 1) or the string
          ps2 or ps2intellimouse.  The initialization can be automated
          by setting mouseport in plan9.ini(8), which will enable a
          call to mouse in termrc (see cpurc(8)).

          The option -d provides a default mouse type should mouse
          fail to determine it.  The types are:

          C    Logitech type C mouse

          W    Logitech type W mouse

          M    Microsoft compatible mouse

          The -n flag queries the mouse and reports its type but does
          not set the device type.

          The -b flag sets the baud rate for communication; it is
          effectual only for serial mice.

          Accupoint is a process, to be used with pipefile(1), that
          processes events from an AccuPoint II pointing device with
          four buttons, such as on Toshiba Portégé 3440CT and 3480CT
          laptops, converting events on the two extra buttons (which
          appear as buttons 4 and 5 in the mouse(3) interface) into a
          simulation of button 2.  These extra buttons on laptops are
          in turn simulations of Intellimouse scrolling buttons and
          have peculiar properties: they generate only `down' events
          that repeat automatically, like a keypad, in an approxima-
          tion of the Intellimouse scroll wheel.  Accupoint overcomes
          this behavior to produce a reasonable approximation of a
          normal mouse button 2: it makes left button act like a regu-
          lar button 2, but is slow to release (the program 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 accupoint, add a line like this to

     Page 1                       Plan 9             (printed 12/3/24)

     MOUSE(8)                                                 MOUSE(8)

          /usr/$user/lib/profile or to a system-dependent configura-
          tion script in termrc (see cpurc(8)):

               pipefile -dr /bin/aux/accupoint /dev/mouse

          Before running accupoint, the mouse should be configured as
          an intellimouse or ps2intellimouse.

     SOURCE
          /sys/src/cmd/aux/mouse.c
          /sys/src/cmd/aux/accupoint.c

     SEE ALSO
          cons(3), cpurc(8), pipefile(1).

     BUGS
          Due to the limitations of pipefile(1), when running
          accupoint it is difficult restart rio(1) if it has exited.

     Page 2                       Plan 9             (printed 12/3/24)