Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!zephyr.ens.tek.com!tektronix!reed!pzbaum!omepd!iwarpr0!pcm From: pcm@iwarpr0.intel.com (Phil Miller) Newsgroups: comp.os.minix Subject: Re: Almost a mouse driver Message-ID: <5264@omepd.UUCP> Date: 27 Nov 89 02:21:11 GMT References: <1989Nov16.003710.19533@comp.vuw.ac.nz> <7040@ficc.uu.net> Sender: news@omepd.UUCP Reply-To: pcm@iwarpr0.UUCP (Phil Miller) Organization: Intel Corp., Hillsboro Lines: 32 In article <7040@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >For a three-button mouse: > Hold down the left button, it will highlight the character > under the mouse. > Move the mouse... the selected region extends > Release the left button... the highlight disappears. > Click the right button and the copied text is sent > to stdin. > Click the middle button and it sends an escape sequence containing > the mouse position (raw mode only!). You would have to modify > the editor to handle this. An existing mechanism which is useful to consider is the Sun mouse's mode of operation, with a couple of enhancements. Click the left button for defining the beginning of text. Click the right button to define the end of text. Middle button [or left and right button together] brings up a menu which includes the option "paste" which submits the text to standard input. It would also be nice to make the `middle button menu' user-definable, say with a file `.mouserc' in the home directory of the user. This would provide some fairly simple mechanism for extending the functionality of the mouse, like for example, walking menus. It would be nice to incorporate a similar mechanism into `elle' and other interactive programs. Comments? Phil Miller iwarp.intel.com