Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!HARVARD.HARVARD.EDU!jimf%saber From: jimf%saber@HARVARD.HARVARD.EDU Newsgroups: comp.windows.x Subject: Re: compatible .twmrc Message-ID: <9003131600.AA02569@lance> Date: 13 Mar 90 16:00:06 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 39 |Is it possible to write a .twmrc that can be used with both X11R3 and |X11R4? Not all of our systems here have been upgraded to R4 yet. The |problem seems to be that the R4 version of twm requires vertical bars |between modifiers in mouse bindings, while R3 doesn't like them at all. Use colons between the statements, as follows: -- cut here -- #Button = KEYS : CONTEXT : FUNCTION #---------------------------------- Button1 = : title : f.raise Button1 = m : title : f.raise Button1 = m : window : f.raise Button1 = : icon : f.iconify Button1 = m : icon : f.iconify Button2 = : title : f.move Button2 = m : title : f.move Button2 = m : window : f.move Button2 = : icon : f.move Button2 = m : icon : f.move Button3 = : root : f.menu "programs" Button3 = m : root : f.menu "programs" Button3 = : title : f.menu "window" Button3 = m : title : f.menu "window" Button3 = m : window : f.menu "window" -- cut here -- There are some incompatibilities (eg "AutoRelativeResize" doesn't exist in the R3 version) but for the most part they're pretty close. I do wish twm would ignore keywords it didn't recognize instead of aborting, or at least take a "-f" flag, but I can live with it :-). jim frost saber software jimf@saber.com