bmh@unc.cs.unc.edu (Brad Hemminger) (12/28/88)
I would like to be able to redefine the actions caused by mouse button push events. I have been successful at changing definitions for all cases except for unmodified mouse button clicks, i.e. non (shift|cntrl|meta) situations. Under the twm we have, these default to the mark, paste and markend actions for the L,M,R buttons (and are not explicitly defined in the .twmrc file). I would like to redefine these. Is this possible? I have remapped some of them; however, twm tends to crash when these are redefined. Also I don't know the name of the function that pastes your cut buffer back into your current screen (i.e. what button 2 normally does). E.g. if I want Cntrl-but2 to do it instead, how do I do so? Notes: I am using twm version 3.1 on a Stellar, and the definitions are accomplished via .twmrc file. Thanks, Brad Hemminger bmh@dopey.cs.unc.edu
kit@ATHENA.MIT.EDU (Chris D. Peterson) (12/30/88)
> I would like to be able to redefine the actions caused by mouse button > push events. I have been successful at changing definitions for all cases > except for unmodified mouse button clicks, i.e. non (shift|cntrl|meta) > situations. Under the twm we have, these default to the mark, paste and > markend actions for the L,M,R buttons (and are not explicitly defined in > the .twmrc file). It sounds like you are talking about the events that are being handled by xterm and other applications with text. My guess is that you need to modify how these applications interpret mouse button clicks, It is customary for window managers not to interpret unmasked button clicks since they usually mean something to the application. For instance xterm, emacs, and the Athena Text widget (used in things like xmh) all bind unmodified mouse buttons as you have described. To change the defaults for these applications you need to study the manual pages for each of the individual applications. Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139