Get Key (51) Function
If the terminal operator types a key defined as an ASCII character, the host application receives a 1-byte ASCII value that corresponds to that character.
If the operator types a key defined as a function, the host application
receives a 2-, 4-, or 6-byte ASCII mnemonic that corresponds to that
function. For example, if the Backtab key is
typed, @B
is received. If PF1 is
pressed, @1
is received. If Erase Input is
pressed, @A@F
is received.
If the operator types a defined shift key combination, the host application receives the ASCII character, or the 2-, 4-, or 6-byte ASCII mnemonic that corresponds to the defined character or function.
If the operator types an individual key that is not defined, the Get Key (51) function returns a return code of 20 and nothing is sent to the host application.
The Get Key (51) function prefixes all characters and mnemonics sent to the host application with two ASCII characters. The first ASCII character is the PSID of the host presentation space to which the keystrokes are sent. The other character is an A, S, or M for ASCII, special shift, or mnemonic, respectively. See Return Parameters.