****************************************************************** ****************************************************************** QUESTION: My customer is running System Strategies Inc. product to provide 3270 capability for 3164s. He also has AADU V2.1 running on a PC, using em2 to emulate a VT220. Needless to say this isn't working very well (or else I wouldn't be writing this). He needs a chart or table showing the AADU VT220 keyboard mapping and the resulting character sequences. I understand that AADU is supposed to completely emulate a VT220 but we don't have any idea what a real VT220 keyboard/map sequence would be. Can you provide such a reference or point us in the right direction. I assume once we have that information we will need to verify with SSI their support specifics. ------------------------------------------------------------------------- A: The best source of the keyboard mapping information would be in the vt220 owner's manual by DEC. You can also look in the /usr/lib/terminfo/dec.ti file and get the same information. In that file, the entries that begin like "kf1=\EOP" mean the key "f1" maps to the sequence: "escape-O P". You will also need to contact SSI and see how that product will work with a vt220 terminal. ------------------------------------------------------------------------- QUESTION: Thanks for the quick response but let me ask this in a slightly different light. My understanding is that AADU V2.1 has hardcoded the VT220 key mapping. Using the info sources you suggested I can readily understand much of the keyboard mapping. However, I am looking for a complete description of how a PS/2 keyboard is being mapped by AADU. For instance, how are the scroll, pause, insert, delete, page tab and numeric pad keys mapped? If I need to modify the terminfo to get a required function I need to know what sequences these "auxiliary" keys are producing. Just as an example, we expected the PF5 key to do nothing, but in fact it appears to be interpreted same as an ENTER key. ------------------------------------------------------------------------- A: You are correct in that the vt220 emulator does have hardcoded key mapping, however the vt200 supports programmable function keys pf6 through pf20. This is accomplished via a control sequence sent from the host. The AADU EM2 emulator also supports this function. There is no IBM/AADU documentation I can find that shows the hard coded key sequences provided by the EM2 emulator, however the "HELP" function (ALT-H) from within the emulator may provide enough information for you. For example the pf5 key you referenced is shown as providing a carriage return, which if you reference the /usr/lib/terminfo/dec.ti file, you will see this is a "CNTRL-M" (¬M). You can also verify this by using the vi editor from EM2 and using the "CTRL-V" function of the editor to see the string that each key is providing. Just edit a new file, press "i" for input mode, press "CNTRL-V" followed by the F5 key and you will also see the "CNTRL-M" key sequence. Before trying this, make sure your terminfo file for vt220 was compiled (tic) using the 7 bit definition in the dec.ti file. If not modify the dec.ti file appropriately and run tic against it. Then make sure you have EM2 set up to emulate vt220/7. You can do this from the "menu" function of the emulator (ALT-M). Finally, make sure your TERM variable is set to vt220. Of the specific keys you mentioned, the scroll lock and pause keys appear to be dead keys in the emulator. You can determine the insert, delete, page up and page down key sequences from the procedure above. Two interesting selections from the EM2 menu screen (ALT-M) I should mention are "lock-keys" and "numeric-keypad". The numeric keypad selection seems to change the F5 key mapping, I suspect this is a defect. The "lock-keys" function is associated with the F6-F20 key remapping I mentioned earlier. I found some additional information about this and I am attaching it below. Notice the DEC Programmer Reference Manual mentioned. This would still be your best source of information, as was indicated in the previous response. I hope this provides you with the information you require. The following information was received from IBM Software Services. Using AIX Access for DOS User's em2 application to emulate a VT-220, provides users the ability to program some function keys, just as a real VT-220 does. The Digital Equipment Corporation's "VT 220 Programmer Reference Manual" (EK-VT220-RM-002) explains in detail how to program the function keys. Below is a brief explanation that can help you get started. In order to program function keys, you must send a device control string to the terminal. This can be done, for example, from a script on the AIX machine you are logged into. The device control string takes the format: DCS Pc;Pl | Ky1/st1;ky2/st2;...kyn/stn ST DCS is the device control string introducer. It is a x"90" while emulating an 8-bit terminal. While emulating a 7-bit terminal, it can be generated with. Pc is the clear parameter and determines what key definitions are cleared and when. Valid values are 0 and 1. 0 indicates that all key definitions are to be cleared and the new definitions follow. 1 indicates that a key definition should be cleared only if the key is defined in this device control string. If a value is not used, the default value of 0 is used. The semicolon is used as a separator. Pl is the lock parameter. If this parameter is a 0, the default, then the keys cannot be re-defined during this emulation session by another control string. If the parameter is a 1, another control string can be sent to re-define the string. The or bar (|) is the final character, indicating that this control string is a control string for down-loading user defined keys (DECUDK). The key definition strings, "kyn/stn", indicates the key, kyn, and string to be attached to it, stn. kyn is a key number as follows... KEY kyn value KEY kyn value KEY kyn value F6 17 F11 23 F16 29 F7 18 F12 24 F17 31 F8 19 F13 25 F18 32 F9 20 F14 26 F19 33 F10 21 F15 28 F20 34 stn it the string that you want attached to this key. This value is given in hexidecimal. ST is the string terminator, x"9C" on an 8-bit emulation session, or
<\> on a 7-bit emulation session. So, to make the F20 key do "LOG" when pushed on a 7-bit emulation session, enter the following... <0><;><1><|><3><4>><4>
<4> <4><7> <\> The same thing will work in an 8-bit emulation session. As with most control strings, it is easy to set this up in a file and then simply use "cat" to have it echo'd to the screen to change the terminal. ------------------------------------------------------------------------- ---------- ---------- ---------- --------- ---------- ---------- This item was created from library item Q611265 1992 BVWHK S e a r c h - k e y w o r d s: AADU ACC ACCESS AIX AIXDOS ALTERNATE BVWHK CHARACTE CHARACTER DEC92 DOS INDEX IX KEYBOARD MAP OZIBM REF REFERENCE SEQ SEQUENCE TABLE USER VT220
WWQA: ITEM: RTA000027497 ITEM: RTA000027497
Dated: 07/1998 Category: RISCGRAF
This HTML file was generated 99/06/24~12:43:10
Comments or suggestions? Contact us