As part of our ongoing development of DP4 we have been working on producing a prototype version of trm3 that uses X Windows. Our long term intention is to produce a version of trm3 for X Windows which is uses 4.6xx map architecture and implements the full GUI functionality of 4.6xx DP4. However this will be a major project, and it is likely to be some time before we release such a product. As a proof of concept we have developed a version of trm3 that is roughly equivalent to the 4.520 Windows version of DP4, with some restrictions.
This trm3 can be used as a direct replacement of the normal trm3 for Linux. As soon as it is installed existing text based DP4 Linux programs will run as X programs instead. However, X programs can normally only be launched from an X session, so there are many situations where you will probably want a choice of trm3 version. This is discussed in Running Text and X versions of trm3 below.
The X Windows version of trm3 requires a different userdata.sys file from the text based trm3. In fact your trm3 should be identical to a Windows userdata.sys file. You can either copy such a file from a Windows machine using binary mode ftp, or you can create an appropriate userdata.sys file by running userdata as follows:
userdata -saa -os windows -type c -resetYou may omit -saa if you do not want the IBM keying conventions. You will need to adjust the colors used for mnemonics and emphasized text as "blue on blue"=underline is not currently implemented.
This SuSe executable runs on SuSe 6.1+ and Red Hat 6.1. We have also verified that it runs correctly using X Servers hosted on Windows machines (giving you a potential alternative to Terminal Server or Citrix solutions).
The terminal manager implements frames, checkboxes and buttons graphically, and the common "standard" icons and VCR buttons built into the terminal manager, and used in core DP4 utilities.
There is no support for custom icons or other images. Cosmetics of the graphical items that are supported are not identical to the Windows version of DP4 and are subject to change in subsequent releases.
Double click is not yet supported, nor selection of text in edit fields. There may be detail differences from the operation of the mouse in the Windows version of DP4
Fonts are not configurable, and colors are only configurable via the regular DFSETUP options. At present the colors that represent each DFSETUP color are hard coded. Translation of blue on blue to normal color with underline is not implemented.
If a DP4 program running in a TelNet session or console starts the X trm3 because of incorrect installation or configuration the program will either terminate with the message "Dp4 X Windows Terminal Manager cannot open X display", or possibly the program will start in an X session, in which case it will be invisible unless and until the X session is made the active "window".
You can arrange for your DP4 programs to start the regular version of trm3 when you are running from a console, or a TelNet session, and to start the X version of trm3 when you are running in an xterm. The way to achieve this is by arranging for your path to be set appropriately depending on the environment. One way to do this is as follows:
case $TERM in xterm) PATH=/usr/datafit/bin/x:$PATH export $PATH ;; esac
You will also need to arrange for different versions of userdata.sys to be read when running console programs and X programs. Currently the only way to achieve this is to start the programs in different directories, each with an appropriate copy of userdata.sys. In future releases we may make it possible to specify a name or location for a userdata.sys file using an environment variable.