Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!quest!digibd!rhealey From: rhealey@digibd.com (Rob Healey) Newsgroups: comp.windows.x Subject: Re: Neophyte X user questions (twm) Message-ID: <1990Oct26.162421.25749@digibd.com> Date: 26 Oct 90 16:24:21 GMT References: <12WR8N@cs.swarthmore.edu> <9010191615.AA06992@excess.lcs.mit.edu> Organization: Digiboard Incorporated, St. Louis Park, MN Lines: 25 In article <9010191615.AA06992@excess.lcs.mit.edu> converse@EXPO.LCS.MIT.EDU writes: >> I am using TWM and X11R4. I want to set up a menu that allows me to >> bring up an xdvi window. However xdvi needs an argument (the dvi file to >> load) and I don't know how to build my menu so that the argument can be >> passed to xdvi. >It is probably not documented very well. Here's an example: > >menu "applications" >{ >"Applications" f.title >"xterm" !"xterm&" >"xcalc -rpn" !"xcalc -rpn &" >} ?????? The person was asking how to SPECIFY the argument at "run time" rather than hard coding it into .twmrc. I.e. I want to run xdvi on foo.dvi, i.e. xdvi foo.dvi. Later, I want to run xdvi on bar.dvi, i.e. xdvi bar.dvi. How do I write ONE entry to handle BOTH cases? Can twm be told to prompt for operands? Can it snarf operands from a buffer? As far as I can tell, twm can't do this. I'm willing to be told, and shown, otherwise. B^). -Rob