Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.windows.x Subject: Re: Using vi as the xmh editor Message-ID: <1990Feb3.171634.4693@smsc.sony.com> Date: 3 Feb 90 17:16:34 GMT References: <9536@medusa.cs.purdue.edu> <9002021625.AA22453@expo.lcs.mit.edu> <47054@lll-winken.LLNL.GOV> Reply-To: dce@Sony.COM (David Elliott) Organization: Sony Microsystems Corp. Lines: 31 In article <47054@lll-winken.LLNL.GOV> casey@gauss.llnl.gov (Casey Leedom) writes: > Actually there's still one problem with the above. Xmh, xrn, etc. might >use a resource like *Editor to specify the path of an editor to exec >under a VT100 widget (NULL implies use of Text widget with no other >underlaying editor process?). But what happens when the editor in >question already does it's own windows (emacs with X support compiled it, >xedit, etc.)? I guess we might use a resource like *EditorWidget which >might be "Text", "VT100" or "none" ... Another option, which could be implemented now, would be to require that the editor named by *Editor do its own windows. Then, supply a command called xvi, which for now is a program (shell script, probably) that executes vi in an xterm window with appropriate signals ignored, scrollbars forced off, and with the title bar set correctly (we used this as a hack to make a System V program called cscope bring up editor windows instead of editing in the current window). Later, when a real xvi is available, it can replace this. Or, you might change xmh to use *Editor and *XEditor. The former would be an editor that requires running under a VT100 terminal emulator, and the latter would be an editor that does its own windows. Of course, that's not to say that the extraction of the VT100 and TEK emulators is not a good idea. There are many cases where people would like to use something like xterm with just a few extensions (menus, buttons, key translations, etc.). -- David Elliott dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce (408)944-4073 "Never call a crazed psychotic a crazed psychotic."