Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.windows.x Subject: Re: Neophyte X user questions Message-ID: <1990Oct21.051230.6320@smsc.sony.com> Date: 21 Oct 90 05:12:30 GMT References: <12WR8N@cs.swarthmore.edu> Organization: Sony Microsystems Corp, San Jose, CA Lines: 22 In article <12WR8N@cs.swarthmore.edu> plummer@cs.swarthmore.edu (David Barker-Plummer) 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. Perhaps this is simple, perhaps its impossible? I'm not sure what your question is, so I'll answer it in two ways (first in my normal voice, and then in a tiny little...sorry). If you know the argument in advance, you just put it in the menu. If you know the directory where the file is, you could use Gary Shea's xf program to choose the file. If you have a list of names, you could use Richard Hesketh's xmenu program to display the list and select one. If you don't know anything, you could use Richard Hesketh's xselect along with xterm's selection mechanism. There's also a program in the X contrib package that let's you type in text from a window (sorry, that MO disk isn't online right now, so I don't know the name).