Patch-ID# 100862-01 Keywords: cg3270, cgtn3270, kcodes, numlock, keymapper, numeric, keypad, OWV3.0.1 Synopsis: SunLink CG3270 7.0.1: Type 4/5 Kbd numlock key doesn't work in cg3270 Date: Jan/28/93 SunOS release: 4.1.x Unbundled Product: SunLink CG3270 Unbundled Release: 7.0.1 Topic: Hitting NumLock key will enable the NumPad; numbers and math operations will become functional. BugId's fixed with this patch: 1103739 Changes incorporated in this version: Architectures for which this patch is available: sun4c, sun4m Patches which may conflict with this patch: None Obsoleted by: CG3270 8.0 Files included with this patch: cg3270, cgtn3270, kcodes.c Problem Description: The numlock key in the numeric keypad cannot be used in cg3270 window. INSTALL: 1. cp /usr/sunlink/cg3270/cg3270 /usr/sunlink/cg3270/cg3270.prev 2. cp /usr/sunlink/cg3270/cgtn3270 /usr/sunlink/cg3270/cgtn3270.prev 3. cp /sun4/cg3270 /usr/sunlink/cg3270/cg3270 4. cp /sun4/cgtn3270 /usr/sunlink/cg3270/cgtn3270 5 If the /usr/sunlink/cg3270/cgsetup/kcodes.c file does not contain any custom mappings, execute the following command: cp /sun4/kcodes.c /usr/sunlink/cg3270/cgsetup/kcodes.c This new version contains default mappings for the numeric keypad's ENTER key. If kcodes.c does contain custom mappings, you should modify your existing kcodes.c table as such: change array entry 0d of Graphic Keys and APL Keys table from 0x200 to 0x20d. Restriction The key mapper will not display the keyboard in NumLock state (hitting NumLock will not update the key mapper display as Caps does), and the NumPad keys in NumLock mode will not be a separate mapping state. There is a known NeWS/TNT bug which can cause NeWS window to become confused about the NumLock state, sometimes NeWS window thinks NumLock is on when it's off and visa versa, but this is fixed in OWV3.0.1; there is nothing CG can do about this. The confusion arises when NumLock is turned on inside a NeWS window but gets turned off outside the NeWS window and visa versa. The NeWS window will think that NumLock is still on even though the NumLock light is off. The workaround is to make sure you turn NumLock on and off in the same NeWS window.