Patch-ID# 100759-01
Keywords: cg3270, keyboard, licenses
Synopsis: CG3270 7.1: Support of type 5 keyboard
Date: 04/Nov/92

SunOS release: 4.1.2

Unbundled Product: CG3270

Unbundled Release: 7.1

Topic: SunLink CG3270 7.1

BugId's fixed with this patch: 1099548 1094464

Architectures for which this patch is available: sun4(all)

Patches which may conflict with this patch:

Obsoleted by:

Problem Description:
	
This patch allows CG3270 7.1 to be used with the US/UNIX and TUV Type 5
keyboards.  The key mapper now has the ability to display and map the
Type 5 in addition to the Type 4 and Type 3. This fixes the bug 1099548.

This patch also fixes the problem of licenses being in hung state when there is
abnormal termination of cg3270(1) and cgtn3270(1) processes. This fixes the
bug 1094464.

IMPORTANT NOTE: Before installing this patch, please install patch 100787
	        which fixes rpc.netlicd

INSTALL:
 
This patch consists of the CG3270 related executable.
 
Stop any running cg3270 processes

To use the patch, replace the following files in /usr/sunlink/cg3270 with the
new versions:
 
Before replacing the files with new version, save the existing files in
directory /usr/sunlink/cg3270:

mv cg3270 cg3270.FCS
mv cgtn3270 cgtn3270.FCS
mv cgkey cgkey.FCS
mv lcgkey lcgkey.FCS

Copy the following new version files:

cp sun4/cg3270 /usr/sunlink/cg3270/cg3270
cp sun4/cgtn3270 /usr/sunlink/cg3270/cgtn3270
cp sun4/cgkey /usr/sunlink/cg3270/cgkey
cp sun4/lcgkey /usr/sunlink/cg3270/lcgkey
	
Also replace the following files in /usr/sunlink/cg3270/cgsetup with the new
versions:
	 
Before replacing the files with new version, save the existing files in
directory /usr/sunlink/cg3270/cgsetup:

mv land.lcgkey land.lcgkey.FCS
mv port.lcgkey port.lcgkey.FCS

Copy the following new version files:
		
cp sun4/land.lcgkey /usr/sunlink/cg3270/cgsetup/land.lcgkey
cp sun4/port.lcgkey /usr/sunlink/cg3270/cgsetup/port.lcgkey

If the /usr/sunlink/cg3270/cgsetup/kcodes.c file does not contain any custom
mappings, you can replace it with the new version of sun4/kcodes.c.  This new
version contains default mappings for the arrow pad keys plus adds the PA1 to
the edit pad Page Up key. 

WORKAROUND FOR A KNOWN PROBLEM:
  Synopsis: Bad mapping of the right keypad minus key with cg3270_7.1 -
						type_5 keyboard


  Work around: After installing patches and launch OpenWindows, type
                      xmodmap -e 'keycode 78 = KP_Subtract'
               and the maping is correct. (the minus sign is effectively
							 displayed)

	Commit to fix in releases: 8.0beta3




NOTE:  If the user already has their own ~/.cg3270keys file, it will override
this kcodes.c mapping and the arrow pad keys and the edit pad keys will be
mapped as "ignore".  In this case, the user must use the key mapper to map the
arrow pad keys to up/left/down/right and the edit pad keys.

Then restart cg3270

