Chapter 7. Host Integration Objects 249
Figure 7-36 shows a sample use of the uselogic attribute in the description tag.
In this sample screen, the Boolean logic to recognize the screen is:
uselogic="1 and ((2 and !3) or (3 and !2))"
where:
򐂰 1 is the <oia> tag
򐂰 2 is the <string value=hello> tag
򐂰 3 is the <string value=hi> tag
Figure 7-36 Using the uselogic attribute for screen recognition
7.12 Keyboard mappings
As illustrated in Figure 7-37 on page 250, IBM Host Publisher Studio V3.5 has
added new key mapping options to the Terminal menu selection.
Note: Key mapping is a Host Publisher Studio function only.
<screen name="Screen1.1">
<description uselogic="1 and ((2 and !3) or (3 and !2))">
<oia status="NOTINHIBITED" optional="false" invertmatch="false" />
<string value="hello" row="1" col="1" casesense="false" optional="true"
invertmatch="false" />
<string value="hi" row="1" col="1" casesense="false" optional="true"
invertmatch="false" />
</description>
...
</screen>
250 IBM WebSphere Host Publisher Version 3.5
Figure 7-37 New keyboard options
The following items are now available from the Terminal menu:
򐂰 Show Keypad: An existing option that shows the keypad on the terminal
screen.
򐂰 Edit Current Keyboard Configuration: A new option that displays the keyboard
editor for key mapping.
򐂰 Load Keyboard Configuration: A new option that allows you to select the
keyboard configuration that should be used for Host Access.
The key mapping facility in Host Publisher Studio allows you to view default
mapping values of keystrokes to functions. This option can be used to map
keystrokes to functions and characters, restore default mapping settings for
keystrokes and control the repetition of keys.
Chapter 7. Host Integration Objects 251
This new function also allows you to map a single key to multiple keystrokes (for
example, mapping the F9 key to the Home key followed by the Insert key). The
keyboard editor is illustrated in Figure 7-38 on page 251.
Figure 7-38 Editing keyboard settings
Key remaps are stored in text files with name <filename>.hpk and Host Publisher
Studio (Host Access) creates a default file with name default.hpk which cannot
be modified.
The default file is shown in Figure 7-39 (the default location for .hpk files is
InstallDir\HostPub\Studio\Preferences\ ).
Figure 7-39 Key mapping default.hpk file
-- listing properties --
autoApply=true
sessionType=1
codePage=037

Get A Comprehensive Guide to IBM WebSphere Host Publisher Version 3.5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.