Previous Page Contents Page Next Page

Appendix B: Motif Resource Files

This appendix explains the contents of the Motif resource files used by the 3270 emulation program and 3179G emulation program, and provides information on modifying them. It should be read in conjunction with your Motif documentation.

B.1 Contents of Resource Files

The default resource file for the 3270 emulation program is provided as /usr/openwin/lib/app-defaults/XTn3270. The name of this file is also used as a string within the file to identify each Motif resource for the program.

The resource file for the 3179G emulation program is similar to this file, with the string XTn3270 in the file name and Motif resource identifiers replaced by XTn3179G.

The contents of the resource file are explained in the following sections.

B.1.1 Fonts

The entry XTn3270*fontList refers to the font used in the menus and dialog boxes, and the entries XTn3270*font1 - XTn3270*font10 refer to the fonts used for each of the emulator's ten sessions.

In the supplied resource file, these are all set to "fixed", indicating a standard fixed-pitch font suitable for single-byte languages. To change the font used for a session or for the user interface, set this to a suitable font specification as defined in your Motif or operating system documentation.

Note that the fonts used should be fixed-pitch fonts; using variable-width fonts may cause alignment problems in the host screen display, or overlapping of dialog box items. See your Motif or operating system documentation for suitable font specifications.

B.1.2 User Interface Colors

The entries XTn3270*background and XTn3270*foreground refer to the background and foreground colors in the menus and dialog boxes. Refer to your Motif or operating system documentation for information on valid colors.

There are no separate entries for the colors used in the emulator sessions, because these colors can be remapped for each session using the style file.

B.1.3 Key Bindings

By default, the keystroke F10 is used by Motif as the accelerator key for the OSF menu bar. If this key is used in a Motif program, it is captured by Motif and not passed to the program. This conflicts with the emulation program's default key mappings, in which F10 is used to represent the 3270 key PF10.

The entry XTn3270*defaultVirtualBindings is used to override the default Motif key bindings for the OSF menu bar accelerator. By setting the default key binding for the OSF menu bar to CTRL + F10, this entry stops Motif capturing the F10 keystroke, so that it can be used by the emulation program.

B.1.4 Cut and Paste Operations

You can change the default buttons for cut and paste operations by using the Motif resources *cutButton and *pasteButton .

For example, if you have a three-button mouse and you want to use the middle mouse button to cut and the right mouse button to paste, set XTn3270*cutButton: button2 and XTn3270*pasteButton: button3.

Previous Page Contents Page Top of Page Next page