Archive-name: dec-faq/vms/part7 Posting-Frequency: quarterly Last-modified: 11 Apr 2005 Version: VMSFAQ_20050411-07.TXT DECwindows and examine the information displayed. Make sure that one of these licenses is present, valid and active. For information on registering software license product authorization keys (PAKs) when you cannot log into the system directly, please see Section 5.6.2. o Check that the DECW$PRIVATE_SERVER_SETUP.COM is correct for the graphics controller in use. For instance: The following is from the 9FX Vision 330 Owners Guide, EK-V330G-OG pg 2-9. Place the following in DECW$PRIVATE_SERVER_SETUP.COM, creatibng .COM from .TEMPLATE if necessary. Locate the DECW$PRIVATE_ SERVER_SETUP.COM file in SYS$SPECIFIC:[SYSMGR] or in SYS$COMMON:[SYSMGR] as appropriate; the former file is used for this system within a cluster configuration, and the latter is used for all systems that do not also have a local copy of this file in SYS$SPECIFIC:[SYSMGR]. $ DECW$XSIZE_IN_PIXELS == xvalue $ DECW$YSIZE_IN_PIXELS == yvalue $ DEFINE/SYSTEM DECW$SERVER_REFRESH_RATE rate_in_Hz Also see Section 11.11. Details of the PowerStorm 3D30 and 4D20 settings are available in the OpenVMS Ask The Wizard area. __________________________________________________________ 11.6 How do I set the title on a DECterm window? If you are creating a new DECterm window, check $ HELP CREATE /TERMINAL /WINDOW_ATTRIBUTES If you want to change the title of an existing window, use the following control sequences, where is the ANSI escape code, value decimal 27, and "text label" is what you want to display: To set the DECterm title, send the escape character, then the characters "]21;", then the text label string, and then an escape character followed by a backslash character. 11-6 DECwindows To set the icon label, send the escape character, then the characters "]2L;", then the icon label string, and then an escape character followed by a backslash character. To set both the DECterm title and icon to the full device name, you can use the following DCL commands: $ esc[0,7] = 27 $ fulldevnam = F$Edit(F$GetDVI("TT","FULLDEVNAM"),"UPCASE,COLLAPSE") $ write sys$output esc+ "]21;" + fulldevnam + esc + "\" $ write sys$output esc+ "]2L;" + fulldevnam + esc + "\" You can also change the title and the icon using the Options-Window... menu. Also see Section 12.1 and Section 8.13. __________________________________________________________ 11.7 How do I customize DECwindows, including the login screen? To customize various DECwindows Motif characteristics including the defaults used by the SET DISPLAY command, the DECwindows login screen background logo used (the default is the DIGITAL, Compaq, or HP logo), various keymaps (also see Section 11.7.2 and Section 11.7.1), the FileView defaults, session manager defaults, the DECwindows login processing, DECwindows log file processing, and various other DECwindows attributes, see the example file: $ SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE This example template file is typically copied over to the filename SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_ SETUP.COM and then modified to meet site-specific requirements. Additionally, various X tools such as xsetroot, bitmap and xrdb-some these can be useful in customizing the appearance of an application or of the DECwindows Motif display-are provided in the DECW$UTILS: area. When using DECwindows V1.2-4 and later on OpenVMS Alpha, the default desktop is the Common Desktop Environment (CDE). You can select your preferred desktop (CDE or DECwindows Motif) when logging in, or you can change the default to the DECwindows 11-7 DECwindows Motif desktop using the DCL symbol decw$start_new_ desktop in the DECwindows private application setup command procedure. See SYS$MANAGER:DECW$PRIVATE_APPS_ SETUP.TEMPLATE for further details, and how to create DECW$PRIVATE_APPS_SETUP.COM. Note that with DECwindows CDE, the root window is no longer visible by default. The root window is hidden behind the "backdrop" window of the current CDE workspace. To make the root window visible, use the CDE style manager selection "backdrop none", and use information such as that in the OpenVMS FAQ to set the root window. To add a new backdrop to the DECwindows CDE environment, the backdrop must first be in or be converted into X11 pixmap format. (This conversion is often possible using tools such as xv.) Then (if necessary) create the default backdrop directory SYS$COMMON:[CDE$DEFAULTS.USER.BACKDROPS]. Place the X11 pixmap file containing the desired image into the backdrops directory, ensure that it has a filename extension of .PM. (The xv default filename extension for the X11 pixmap file is .XPM, while CDE expects only to see files with .PM.) Now invoke the CDE style manager and select a new backdrop. You will find your image will be placed at the end of the list of backdrops available. If you require a message be included on the initial display-where the start session display and the logo appears-you can use either of the following approaches: o The simplest approach requires OpenVMS V7.3-2 or later, and the corresponding DECwindows V1.3- 1 kit or later. You will want to create a file named SYS$COMMON:[SYSMGR]DECW$GREET.TXT, and this will be displayed in a popup-with an OK button- when the login box is displayed. This is intended specifically for applications requiring such a display. 11-8 DECwindows o The second approach involves copying the file XRESOURCES.DAT from SYS$SYSDEVICE:[VMS$COMMON.CDE$DEFAULTS.SYSTEM.CONFIG.C] into the directory SYS$SYSDEVICE:[VMS$COMMON.CDE$DEFAULTS.USER.CONFIG.C] and editing the copy. Specifically, look for the following: Dtlogin*greeting.labelString: The line is normally commented out, and by default contains the string: Welcome to %localhost% You can change this text to something akin to the following: Dtlogin*greeting.labelString: Welcome to Heck \n\ This is a Trusted System owned by the Rulers of the planet Zark\n\ \n\ We Come In Peace\n\ \n If you want Privacy, you've come to the wrong place\n\ \n The lines of text will be centered for you. In most DECwindows versions, you will be able to onbtain only about eight (8) lines of text. Changes have been implemented in DECwindows V1.3 and later that permit up to about twenty-five (25) lines of text. The login logo is stored as an XPM bitmap image in the text file SYS$SYSROOT:[SYSCOMMON.CDE$DEFAULTS.SYSTEM.APPCONFIG.ICONS.C]DECDTLOGO.PM, and it can be changed. Copy the file to SYS$SYSROOT:[SYSCOMMON.CDE$DEFAULTS.USER.APPCONFIG.ICONS.C]DECDTLOGO.PM, as DECwindows upgrades can replace the system version of this file. On DECwindows V1.3-1 and later (and possibly on V1.3), both DECwindows CDE and DECwindows Motif displays use this logo file. On older releases, only the DECwindows CDE displays used this logo file, while the logo used for the Motif login display was hard-coded into the package and the only available override is the 11-9 DECwindows DECW$LOGINLOGO command procedure mechanism within the customized, site-specific DECW$PRIVATE_APPS_SETUP.COM file. Look at the contents of the DECDTLOGO.PM file and at other *.XPM files and tools for additional details. _____________________________ 11.7.1 How do I customize DECwindows keymapping? Various keymaps can be implemented on OpenVMS and other X Windows systems, allowing the implementation of a Dvorak-style or other alternate keymappings. For details, see the available X Windows documentation (this is the documentation associated with X Windows itself, and not the product documentation for the OpenVMS operating system nor for the DECwindows X Windows implementation) and see the DECwindows *.DECW$KEYMAP (text-format) files found in the DECwindows DECW$KEYMAP: directory. For other keymapping information, see Section 11.7.2. _____________________________ 11.7.2 Why does the DELETE key delete forward instead of backward? See the SET TERMINAL/BACKSPACE command on OpenVMS V8.2 and later. This behaviour involves the Motif virtual key bindings. When a Motif application starts, it looks at the vendor string returned in the display connection information and attempts to match the string to a table of virtual bindings. You can override the default bindings in your decw$xdefaults.dat file. Here is the entry you would make to get the default VMS bindings. 11-10 DECwindows *defaultVirtualBindings:\ osfCancel : \n\ osfLeft : \n\ osfUp : \n\ osfRight : \n\ osfDown : \n\ osfEndLine :Alt \n\ osfBeginLine :Alt \n\ osfPageUp : \n\ osfPageDown : \n\ osfDelete :Shift \n\ osfUndo :Alt \n\ osfBackSpace : \n\ osfAddMode :Shift \n\ osfHelp : \n\ osfMenu : \n\ osfMenuBar : \n\ osfSelect :