Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!kit From: kit@ATHENA.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Complaints about xterm mouse clicks (again, I know) Message-ID: <8901132234.AA20558@DORA.MIT.EDU> Date: 13 Jan 89 22:34:07 GMT References: <8901131650.AA00382@fafnir.think.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 61 > Once again, I'm going to flame about the xterm mouse clicks. Good thing the the X Consortium provides its staff with asbestos underwear :-) [ long discussion of why the default mouse binding ruin his day ] The default selection bindings are just that, defaults. They are not cast in concrete. If you don't like them, change them. As an example of how to change them I will provide an entry for an X Resource file for the particular set translations that you describe. > I can't see any way to change this from the man page. It is not obvious to you non-Xtoolkit people but it is there. From the manual page for xterm (KEY/BUTTON BINDINGS): :insert() \n\ Ctrl ~Meta :mode-menu() \n\ ~Meta :select-start() \n\ ~Meta :select-extend() \n\ Ctrl ~Meta :mode-menu() \n\ ~Ctrl ~Meta :ignore() \n\ ~Meta :insert-selection(PRIMARY, CUT_BUFFER0) \n\ ~Ctrl ~Meta :start-extend() \n\ ~Meta :select-extend() \n\ ~Meta :select-end(PRIMARY, CUT_BUFFER0) \n\ :bell(0) For you particular changes it sounds like you want to make the shift key be the exclusive modifier for the translations that handles cut and paste, to do this you need to add the following lines to your X resource file (I checked this it works): xterm.VT100.Translations: #replace \ :insert() \n\ Ctrl ~Meta :mode-menu() \n\ Ctrl ~Meta :mode-menu() \n\ !Shift :start-extend() \n\ !Shift :ignore() \n\ !Shift :select-start() \n\ !Shift :select-extend() \n\ !Shift :insert-selection(PRIMARY, CUT_BUFFER0) \n\ !Shift :select-extend() \n\ :select-end(PRIMARY, CUT_BUFFER0) \n\ :bell(0) There are other ways to do this, but I think that this has the minimum number of lines. For more information I refer you to the xterm manual page, and the section of the Xt manual on translation tables (Appendix B). 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