1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
Hello!
The OpenVMS support for XBanner is not complete. It does not include any of
the options that require XBanner to linger around after program completion.
Therefore linger, color-cycling and glints are not supported. For more
detailed information, see below.
For now, I see no practical way to support this. The C library function
vfork() works like SPAWN/WAIT which is no good. And there is no way I know
of to duplicate the functionality of Unix fork() properly. If you have an
idea - let me know.
I have supplied two versions of the XPM library. This is actually Linux's
libXpm-3.4g which I have compiled for VAX (VAX_XPM.OLB) and for Alpha
(AXP_XPM.OLB). The MAKEFILE_VMS.COM command procedure asks you which
one you want to use. Also, when compiling, please copy the included xpm.h
to the same directory you are compiling XBanner in (usually [-] from this
directory). If you are having problems, you can download the libXpm from
ftp://sunsite.unc.edu/pub/Linux/libs/X/libXpm-3.4g.tar.gz, find a Unix
machine with GZip to open the archive and create the lib. I have also
attached a small command procedure which creates the lib: MAKEFILE_XPM.COM
Don't worry about compilation warnings in SIMX.C !
The supplied MAKEFILE_VMS.COM should be enough to compile and run. This has
been tested and used on a VAXstation 4000-60, running OpenVMS V6.2 with Motif
1.2-3 installed. Motif is *NOT* used, but the X11 libraries and include
files are needed. I have also recently been able to get it to compile on a
Alpha AXP system (DEC-3000) running OpenVMS 6.2 or 7.0. Both versions probably
require DEC-C.
A note about large fonts. I can help provide .BDF sources for any fonts you
might like, as long as they are part of the X11R6 distribution from the
X-Consortium (read : they are freely available), or from the FreeFonts
package. The OpenVMS/VAX utility FONT can be used to convert them into the
VAX .SNF format (the *.DECW$FONT is actually a .SNF format). AXP/VMS uses
.PCF files anyway, so BDFTOPCF which is supplied with OpenVMS/AXP can be
used to convert them.
How to compile / run
====================
To compile simply type:
@MAKEFILE_VMS
and answer the question about your platform (VAX / AXP).
After that, you need to define a foreign command like this:
$ xbanner := $device:[directory]xbanner.exe
Now you can start playing around with different command-line options. Start
with 'xbanner -help' for a detailed list.
In order to install it instead of your regular login screen, you need to do
the following:
1. Create a command procedure 'XBANNER.COM' which will define the foreign
command as above, and run it. I think you'll need the -file <filename>
option. The XBANNER.COM file should be placed in SYS$MANAGER:
2. Edit SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM (there is a template file
named DECW$PRIVATE_APPS_SETUP.TEMPLATE if you don't have it), and add
a line like this:
$ DECW$LOGINLOGO == "SYS$MANAGER:XBANNER.COM"
That ought to do it.
Some things to remember:
========================
1. The Demo is a UNIX shell script, so it won't run on OpenVMS. And anyway, it
requires fonts which are usually not available on OpenVMS hosts.
2. Using different symbols as different foreign commands to run XBanner in
order to use resources like 'xbanner.label' and 'xbanner2.label' will
not work. XBanner can only refer to the real name of the binary that
is executing it. You will have to copy XBanner to a different name.
3. The app-defaults file is : DECW$SYSTEM_DEFAULTS:<PRGCLASS>.DAT !
PRGCLASS is defined in xb_config.h
4. XBanner will look for XBANNER.DAT in the users directory as the
equivalent of UNIX's .Xdefaults resource file.
5. XBanner will also read DECW$XDEFAULTS.DAT
6. I have seen some anomaly in XBanner's drawing of the Fan BG-Style in
OpenVMS, and I didn't check it out yet.
7. Don't forget to add a foreign command for freetemp, and have it called
from within SYLOGIN.COM !
8. When an error occurs, XBanner exits with status = 1, which means you get
'%NONAME-W-NOMSG, Message number 00000001' - this is normal!
I hope you'll enjoy XBanner.
Amit
==============================================================================
Why XBanner for OpenVMS does not support linger/color-cycling/glint:
----------------------------------------------------------------------------
The only way to linger after program execution stops is by creating a
detached process. But this means having to do most initializations again.
OpenVMS simply doesn't have a real fork() functionality function. This is a
very impeding factor, which I am not sure I want to contest with.
|