PreviousConfiguring CICS for Fileshare Configuring CICS for DatabasesNext"

Chapter 7: Configuring CICS Terminals

This chapter describes how to remap the terminal keyboard and terminal colors for the CICS Option component of Mainframe Express.

7.1 Keyboard Remapping

You can remap the 3270 keys to mappable keys on the PC keyboard enabling you to choose which key on the PC keyboard will represent a 3270 key. This means you can define a keyboard layout that is familiar to you, rather than having to learn an unfamiliar one.

You control this remapping with the configuration file, dfh3270.cfg.

For keyboard remapping, the configuration file contains a header record:

[KEYBOARD]

which must start in column 1, followed by a record for each key that is to be remapped. The format of each record is:

PC-physical-key-name : 3270-key-name

where:

PC-physical-key-name is the name of the key on the PC keyboard that is to represent the 3270 key, and must start in column 1. The PC keyboard names are those specified in the tables Keyboard Keys, Numeric Keypad (NumLock On), and Numeric Keypad (NumLock Off). Each key name can be prefixed by the characters SHIFT-, CTRL-, and ALT- as appropriate.
: is the separator, and must be in column 18.
3270-key-name is the name of the 3270 key as specified in the table of 3270 key names, and must start in column 20. (Note that these names are case sensitive.)

For example, to map the Clear 3270 key onto the Ctrl+Return key on the PC keyboard, you would specify the record:

CTRL-RETURN      : CLEAR

and to define the numeric keypad plus (+) key on the PC keyboard as an extra tab key, you would specify the record:

NUMPAD-+         : TAB 

Mainframe Express looks for the configuration file dfh3270.cfg in folders mfuser\config and \mfe\config (in that order). If no configuration file is found, the default key mappings are used.

A sample dfh3270.cfg file is supplied in \mfe\mfcics\source that contains one entry mapping the Enter 3270 key to the right-hand Ctrl key on the PC keyboard.

7.1.1 3270 Key Names Table

All displayable character keys have the same name as the character, and are entered in a configuration file record as such. By default, each displayable character key maps to itself. To remap these keys, enter the physical key name you require (from the Physical Keys table) in the first column of the configuration file record followed by the character (the keyname) in column 19. For example:

Z                : a

maps the lowercase "a" 3270 key to the uppercase "z" (Z) key on the PC keyboard.

The following table shows the names of the non-displayable 3270 keys as they should be entered in the configuration file together with the default PC keyboard setting for each 3270 key.

3270 Key Name Default Setting
NUMPAD-0 NUMPAD-0
NUMPAD-1 NUMPAD-1
NUMPAD-2 NUMPAD-2
NUMPAD-3 NUMPAD-3
NUMPAD-4 NUMPAD-4
NUMPAD-5 NUMPAD-5
NUMPAD-6 NUMPAD-6
NUMPAD-7 NUMPAD-7
NUMPAD-8 NUMPAD-8
NUMPAD-9 NUMPAD-9
PF1 F1
PF2 F2
PF3 F3
PF4 F4
PF5 F5
PF6 F6
PF7 F7
PF8 F8
PF9 F9
PF10 F10
PF11 F11
PF12 F12
PF13 SHIFT-F1
PF14 SHIFT-F2
PF15 SHIFT-F3
PF16 SHIFT-F4
PF17 SHIFT-F5
PF18 SHIFT-F6
PF19 SHIFT-F7
PF20 SHIFT-F8
PF21 SHIFT-F9
PF22 SHIFT-F10
PF23 SHIFT-F11
PF24 SHIFT-F12
CLEAR ESCAPE
RETURN RETURN
TAB TAB
BACKTAB BACKTAB
DELETE DELETE
NUMPAD-DELETE NUMPAD-DELETE
INSERT INSERT
NUMPAD-INSERT NUMPAD-INSERT
BACKSPACE BACKSPACE
UP-ARROW UP-ARROW
NUMPAD-UP-ARROW NUMPAD-UP-ARROW
DOWN-ARROW DOWN-ARROW
NUMPAD-DN-ARROW NUMPAD-DN-ARROW
LEFT-ARROW LEFT-ARROW
NUMPAD-LE-ARROW NUMPAD-LE-ARROW
RIGHT-ARROW RIGHT-ARROW
NUMPAD-RI-ARROW NUMPAD-RI-ARROW
SPACE SPACE
NUMPAD-* NUMPAD-*
NUMPAD-+ NUMPAD-+
NUMPAD-MINUS NUMPAD-MINUS
NUMPAD-. NUMPAD-.
NUMPAD-/ NUMPAD-/
PRINT-SCREEN ALT-P
ERASE-EOF CTRL-END
RESET CTRL-R
ENTER RIGHT-CTRL
ENTER CTRL-RETURN
ENTER NUMPAD-ENTER
PA1 ALT-1
PA2 ALT-2
PA3 ALT-3
HOT-KEY ALT-S
TOGGLE-STATUS ALT-T
TOGGLE-SOSI CTRL-F1
ERASE-ALL-UNPROTECTED CTRL-PAGEDOWN


Note: On some keyboards, the right Ctrl key does not emulate the function of the 3270 Enter key. If the system does not respond when you press the right Ctrl key, depress the left Ctrl key and the Return key instead.


7.1.2 Physical Keys Table

The following table shows which keys on the PC keyboard can be set to represent 3270 keys. A "Y" indicates that the physical key can be remapped to a 3270 key.

Physical Key Name Normal Shift Ctrl Alt
a Y   Y Y
b Y   Y Y
c Y   Y Y
d Y   Y Y
e Y   Y Y
f Y   Y Y
g Y   Y Y
h Y   Y Y
i Y   Y Y
j Y   Y Y
k Y   Y Y
l Y   Y Y
m Y   Y Y
n Y   Y Y
o Y   Y Y
p Y   Y Y
q Y   Y Y
r Y   Y Y
s Y   Y Y
t Y   Y Y
u Y   Y Y
v Y   Y Y
w Y   Y Y
x Y   Y Y
y Y   Y Y
z Y   Y Y
A Y   Y Y
B Y   Y Y
C Y   Y Y
D Y   Y Y
E Y   Y Y
F Y   Y Y
G Y   Y Y
H Y   Y Y
I Y   Y Y
J Y   Y Y
K Y   Y Y
L Y   Y Y
M Y   Y Y
N Y   Y Y
O Y   Y Y
P Y   Y Y
Q Y   Y Y
R Y   Y Y
S Y   Y Y
T Y   Y Y
U Y   Y Y
V Y   Y Y
W Y   Y Y
X Y   Y Y
Y Y   Y Y
Z Y   Y Y
0 Y     Y
1 Y     Y
2 Y     Y
3 Y     Y
4 Y     Y
5 Y     Y
6 Y     Y
7 Y     Y
8 Y     Y
9 Y     Y
F1 Y Y Y Y
F2 Y Y Y Y
F3 Y Y Y Y
F4 Y Y Y Y
F5 Y Y Y Y
F6 Y Y Y Y
F7 Y Y Y Y
F8 Y Y Y Y
F9 Y Y Y Y
F10 Y Y Y Y
F11 Y Y Y Y
F12 Y Y Y Y
! Y      
" Y      
# Y      
$ Y   Y  
% Y      
& Y      
' Y      
( Y      
) Y      
* Y      
+ Y      
, Y      
- Y   Y  
. Y      
/ Y      
: Y      
; Y      
< Y      
= Y      
> Y      
? Y      
@ Y      
[ Y   Y  
\ Y      
] Y   Y  
^ Y   Y  
_ Y   Y  
` Y      
{ Y   Y  
} Y   Y  
~ Y   Y  
| Y      
8 Y      
` Y      
" Y      
| (split vertical bar) Y      
BACKSPACE Y Y Y Y
TAB Y   Y Y
BACKTAB Y      
RETURN Y Y Y Y
DELETE Y Y Y Y
END Y Y Y Y
ESCAPE Y      
HOME Y Y Y Y
INSERT Y   Y Y
PAGEDN Y Y Y Y
PAGEUP Y Y Y Y
SPACE Y      
LEFT-ARROW Y Y Y Y
RIGHT-ARROW Y   Y Y
UP-ARROW Y Y Y Y
DOWN-ARROW Y Y Y Y
LEFT-ALT Y      
LEFT-CTRL Y      
LEFT-SHIFT Y      
RIGHT-ALT Y      
RIGHT-CTRL Y      
RIGHT-SHIFT Y      

7.1.3 Numeric Keypad Keys (NumLock On) Table

The following table shows, which keys on the PC numeric keypad can be set to represent 3270 keys when the numeric lock is set on. A "Y" indicates that the physical key can be remapped to a 3270 key.

Keyboard Key Name Normal Shift Ctrl
NUMPAD-0 Y   Y
NUMPAD-. Y Y Y
NUMPAD-1 Y Y Y
NUMPAD-2 Y Y Y
NUMPAD-3 Y Y Y
NUMPAD-4 Y Y Y
NUMPAD-5 Y Y  
NUMPAD-6 Y Y Y
NUMPAD-7 Y Y Y
NUMPAD-8 Y Y Y
NUMPAD-9 Y Y Y
NUMPAD-/ Y    
NUMPAD-* Y    
NUMPAD-MINUS Y    
NUMPAD-+ Y    
NUMP-ENTER Y   Y

7.1.4 Numeric Keypad Keys (NumLock Off) Table

The following table shows which keys on the PC numeric keypad can represent 3270 keys when the numeric lock is set off. "Y" indicates that the physical key can be remapped to a 3270 key.

Keyboard Key Name Normal Shift Ctrl
NUMPAD-INSERT Y    
NUMPAD-DELETE Y    
NUMPAD-END Y    
NUMPAD-DWN-ARROW Y    
NUMPAD-PAGEDN Y    
NUMPAD-LFT-ARROW Y    
NUMPAD-MIDDLE Y    
NUMPAD-RT-ARROW Y    
NUMPAD-HOME Y    
NUMPAD-UP-ARROW Y    
NUMPAD-PAGEUP Y    

7.2 Color Remapping

You can remap the standard 3270 screen colors to colors on the PC screen. You control this remapping with the configuration file, dfh3270.cfg.

For color remapping, the configuration file contains a header record:

[COLOR]

which must start in column 1, followed by a record for each color that is to be remapped. The format of each record is:

physical-color      : 3270-color

where:

physical-color is the name of the color on the PC screen that is to represent the 3270 color, and must start in column 1. The PC color names are those specified in the table PC Physical Colors.
: is the separator, and must be in column 18.
3270-color is the name of the 3270 color as specified in the table 3270 Colors , and must start in column 20. (Note that these names are case sensitive.)

For example, to map the 3270 color blue onto the PC screen color light blue, you would specify the record:

LIGHT-BLUE       : BLUE

in the configuration file.

You can set a Windows registry entry (under MFCOMMON) to point to the dfh3270.cfg file. If a configuration file is not found, the default color mappings are used.

7.2.1 Colors Table

The following table shows the 3270 color names with the PC physical screen colors that they map to by default.

3270 Color Name Default PC Physical Color
BLUE LIGHT-BLUE
GREEN LIGHT-GREEN
PINK LIGHT-MAGENTA
RED LIGHT-RED
TURQUOISE LIGHT-CYAN
WHITE WHITE
YELLOW YELLOW
NEUTRAL LIGHT-GRAY

You can remap a 3270 color name to any one of these PC colors:


Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.

PreviousConfiguring CICS for Fileshare Configuring CICS for DatabasesNext"