Key Loading Codes and Descriptions

Code

Description

"0"

Resets the specified function key to the default value. Default values are set when you boot the system. Refer to the Installation and Configuration Guide for the default values.

"1"

Resets all function keys to their default values.

"2"

Sets a function key to transmit a character string. You must specify the key number, the length of the text, and the text itself.

"3"

Sets all function keys. You must specify the number of keys to be loaded, followed by the load sequence (defined in "2", above) for each key specified.

"4"

Returns a string containing the text for the specified key. The returned string contains the length of the loaded string followed by the string itself. You must specify the function key number.

"5"

Returns a string specifying the number of keys, followed by the load sequence (defined in "2," above) for each key.

"6"

Returns a label for the specified function key. The label is returned in the same manner as the key values (see "4," above).

"7"

Returns all labels for function keys. The labels are returned in the same manner as the key values (see "5," above).

"8"

Causes the terminal driver to transmit the specified function key without the key number or text length. This is useful to emulate the pressing of a key during program testing.

"9"

Causes the terminal driver to send back to the user the text passed in the 'load' command. The text length and the text are the only additional arguments. This is useful in loading the terminal input buffer.

Additional parameters can include:

  • The function key number. It is always a 1-byte, zero-based, binary value. You can use the CHR() function to indicate the hexadecimal equivalent.

  • A string length. Lengths are 1-byte binary values. The values to be stored can be from 0 to 63 characters.

  • A string value to be stored, such as "ACCOUNTING" or "END"+$0D$. Any character may appear in the string value.

The returned strings may include the key number, number of bytes in the string, and the text of the information requested (the key text or label).