Article 144009 of comp.os.vms:
Path: nntpd.lkg.dec.com!depot.mro.dec.com!news.jrd.dec.com!tbjnws.tbj.dec.com!tkonws.tko.dec.com!news.dec-j!spin-hsd0-tky!spinnews!wnoc-tyo-news!news.join.ad.jp!news.imnet.ad.jp!usenet.seri.re.kr!news.cais.net!news1.erols.com!imci5!imci4!newsfeed.internetmci.com!in1.uu.net!athos.cc.bellcore.com!microjet!wws
From: wws@cc.bellcore.com (Wayne Scott)
Newsgroups: comp.os.vms
Subject: Re: Configuring X on OpenVMS
Date: 3 Apr 1996 19:27:18 GMT
Organization: Bellcore/SCP (2561)
Lines: 149
Sender: wws@microjet (Wayne Scott)
Distribution: world
Message-ID: <4jujem$nqv@athos.cc.bellcore.com>
References: <mwt-2703962240240001@drwltl.netkonect.co.uk>
Reply-To: wws@cc.bellcore.com
NNTP-Posting-Host: 128.96.142.109
X-Newsreader: mxrn 6.18-30


Have you received any answers yet?  Steve Hoffman & Ken Fairfield have been
extremely helpful to me, often replying directly.  Here's some of what I use
after their guidance.  I do NOT guarantee that I'm doing this the best way,
but it's what I got working:

decw$xdefaults.dat

!
!       This file is used to set some DECterm-specific resources so that
! the DECterm menu bar is not accessible to users.  It also sets colors
! that we're unable to apply through DECW$TERMINAL_DEFAULT.DAT.
!
!       Hiding the DECterm menu bar serves two purposes:
!
! 1) it prevents users from fiddling with system resources
!    that can easily change the look-and-feel and titles of many windows.
!
! 2) It makes the DECterm windows look consistent with the xterm windows
!    on the SUN Global MOC and other UNIX systems.
!
!       However, Steve Hoffman <hoffman@xdelta.ENET.dec.com> says:
!
!       Question (wws): How can I customize DECterm to remove any menus
!                       and items that I don't want customers fiddling with?
!       ====================================================================
!       As mentioned in the copyright below, the information in this message
!       is subject to change without notice and should not be construed as a
!       commitment by Digital Equipment Corporation.
!
!       There is no supported way to do this.
!
!       You might be able to set various (undocumented) sensitive entries
!       to "false" in the X Windows default file DECW$TERMINAL_DEFAULT.DAT.
!
!       NOTE THAT THIS IS >NOT< A SUPPORTED INTERFACE AND
!               IS SUBJECT TO CHANGE WITHOUT NOTICE.
!
!       This won't remove the various menu entries from view,
!       but it will "desensitize" them; it will `grey' them out.
!
!       The (undocumented) entries do not operate in Motif V1.2; they
!       will likely work in V1.1 and in a version after the V1.2 release.
!       ====================================================================
!
!    First attempts to use these in DECW$TERMINAL_DEFAULT.DAT did not work.
!  At that time, we were on Motif V1.2.  Since upgrading to Motif V1.2-3
!  and placing these in DECW$XDEFAULTS.DAT, this solution started working.
!  It's clear whether the upgrade worked, or the use of DECW$XDEFAULTS.DAT
!  was the magic bullet.
!
*decterm_mb*height:                             1
*decterm_mb*resizeHeight:                       false
*decterm_mb*resizeWidth:                        false
!
DECW$TERMINAL*.file_menu_entry.sensitive:       false
DECW$TERMINAL*.edit_menu_entry.sensitive:       false
DECW$TERMINAL*.commands_menu_entry.sensitive:   false
DECW$TERMINAL*.setup_menu_entry.sensitive:      false
DECW$TERMINAL*.print_menu_entry.sensitive:      false
DECW$TERMINAL*.help_menu_entry.sensitive:       false
!

==========================
decw$terminal_default.dat
==========================

! ************************************************************************
!               General DECterm Resources.
! ************************************************************************
!
DECW$TERMINAL.iconName:                                 Terminal
DECW$TERMINAL.title:                                    Terminal
DECW$TERMINAL.winGravity:                               1
!
DECW$TERMINAL.main.terminal.applicationKeypadMode:      on
DECW$TERMINAL.main.terminal.bitPlanes:                  4
DECW$TERMINAL.main.terminal.borderColor:                #1c1c1c1c1c1c
DECW$TERMINAL.main.terminal.condensedFont:              off
DECW$TERMINAL.main.terminal.defaultIconName:            DECterm
DECW$TERMINAL.main.terminal.defaultTitle:               DECterm
!
!       Let the default be used.
! DECW$TERMINAL.main.terminal.displayHeight:            488
!
DECW$TERMINAL.main.terminal.rows:                       24
!
!       Enable the vertical scroll bar.
!
DECW$TERMINAL.main.terminal.scrollVertical:             on
DECW$TERMINAL.main.terminal.shareColormapEntries:       on
!
! ************************************************************************
!               DECterm Performance-Effecting Resources.
!
!       Resources that definitely effect DECterm performance by
!       increasing or decreasing the amount of memory required.
!
! saveLinesOffTop is a boolean.  It can be [ FALSE | TRUE ] or [ OFF | ON ].
! set saveLinesOffTop to False and you save a lot of memory.
!
! The batchScrollCount & transcriptSize both seem to control the
! number of lines saved, and hence, the SIZE of the scroll bar.
!
! The scrollVertical resource (above) controls vertical scroll bar visibility.
! If saveLinesOffTop is FALSE and scrollVertical is ON, no lines
! will be saved but the vertical scroll bar will still be visible.
! If you don't want a scroll bar at all, set scrollVertical to FALSE or OFF.
!
! ************************************************************************
!
DECW$TERMINAL.main.terminal.saveLinesOffTop:            on
DECW$TERMINAL.main.terminal.batchScrollCount:           1000
DECW$TERMINAL.main.terminal.transcriptSize:             1000
!
! ************************************************************************
!               DECterm-Specific Color Resources.
! ************************************************************************
!
!These Shadow Colors match the Mwm active color combinations.
!
DECW$TERMINAL*bottomShadowColor:                        #6D6DB9B9E6E6
DECW$TERMINAL*topShadowColor:                           #FFFFFFFFFFFF
!
DECW$TERMINAL.main.terminal.background:                 gray82
DECW$TERMINAL.main.terminal.foreground:                 black
!
! ************************************************************************
!               DECterm MenuBar Resources.
!       XmRowColumn effects the Menus & Button items therein.
! The different background specifications allow the pull-down menus
! and menu items to be a color different from the top-level menu bar.
! ************************************************************************
!
*decterm_mb.background:                                 gray82
*decterm_mb.foreground:                                 black
*decterm_mb*XmRowColumn*background:                     gray82
!
! ************************************************************************
!               DECterm ScrollBar Resources.
! These seem to work only in DECW$XDEFAULTS.DAT.
! ************************************************************************
!
DECW$TERMINAL.main.terminal.XmScrollBar.background:     gray82
*main*terminal*XmScrollBar*background:                  gray82
!
! ************************************************************************
!               End of DECterm-Specific Color Resources.
! ************************************************************************


