From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b2d575ac65c32bb2 X-Google-Attributes: gidfee84,public From: greenwoodde@feda34.fed.ornl.gov (Dave Greenwood) Subject: Re: DXterm - removing the menu bar? Date: 1997/03/27 Message-ID: <27MAR97.16223008@feda34.fed.ornl.gov>#1/1 X-Deja-AN: 228783354 References: Organization: MIT PLASMA FUSION CENTER Newsgroups: comp.unix.osf.osf1 In a previous article, stevew@dougal.logica.co.uk (Steve Wyeth) wrote: > I've set up xterm to be what I want in terms of colours and lines > saved, but when I use it to log into VMS hosts and request that > the screen size be changed to 132 columns xterm does nothing > (probably can't handle it). > > So I started experimenting with DXterm - and that does what I > want. However it also has the DEC copyright message on the > title bar (which doesn't change in response to '-title' or '-name') > and I can't seem to remove the menu bar. > > Once I have the options set the way that I want them, I won't > need the menu bar. > > So... > > How do I reliably change the title of the DXterm and how do I > remove the menu bar (preferably from .Xdefaults). It's not clear to me whether you want to solve your problem with VMS or some Unix variant. Anyway, here's some info on VMS, xterm and dxterm. The VMS equivalent to .Xdefaults is DECW$XDEFAULTS.DAT. By default that's in your login directory although you can redefine the logical DECW$USER_DEFAULTS to change the location. Likewise, the VMS equivalent to the XTerm resource file is XTERM.DAT. Putting the line: XTerm*vt100.geometry: 132x40+500+400 in XTERM.DAT will give you a 132 column by 40 line vt100 window at (500,400). Alternately, the same command as in Unix: xterm -geometry 132x40+500+400 will yield the same results (assuming you have xterm defined as a foreign command or you have VMS 6.2 or newer and the DCL$PATH logical locates the image). Since this is a VMS command, case isn't important (unless you start playing games with quotes). Case *is* important, of course, in the resource file. The VMS command for creating a DXterm is CREATE/TERMINAL. You can set the window title and icon name by adding /WINDOW_ATTRIBUTES=(TITLE:"Title",ICON_NAME:"icon") (the quotes are required only if you want to preserve case or put special characters in the title or icon name) or you can put DECW$TERMINAL.iconName: icon DECW$TERMINAL.title: Title in DECW$TERMINAL_DEFAULT.DAT (may also work in DECW$XDEFAULTS.DAT, I don't know). The title will replace the copyright on the first mouse click in the window or after a few seconds. You can also change the title/icon on the fly by issuing appropriate escape sequences. I don't know how to remove the menu bar. I have an old message that claims that: *decterm_mb*height: 1 in DECW$XDEFAULTS.DAT (or possibly DECW$TERMINAL_DEFAULT.DAT) should work but I had no luck with it. Btw, I'm assuming you have DECWindows Motif 1.2-3 or newer on your VMS system. Hth, Dave -------------- Dave Greenwood Internet: Greenwoodde@ORNL.GOV Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself