Typing Aid Keys [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
Typing Aid Keys
Typing aid keys set the key definition field to a character string. When
you press the key, the stored string is sent to the input device. The
key's attribute field determines the manner in which the key is
interpreted. For example, consider the situation in which you are in the
interpreter's editor, and the key definition field for key 1 is set to
the value LIST and the key's attribute field is set to T (indicating the
content of the key is to be "transmitted" to the host computer). When
you press key 1, the LIST command is displayed on the terminal and
subsequently executed. The following statements are related to defining
typing aid keys:
* GET KEY - Retrieves the definition of the typing aid keys from a BKEY
file.
* SAVE KEY and RESAVE KEY - Stores the current definitions of the
typing aid key in a BKEY file.
* SCRATCH KEY - Restores the default key definitions for the terminal.
These statements are defined in chapter 4.
You can define user-definable keys either before or after entering the
interpreter. Consult your terminal reference manual for the method used
to set the fields for your terminal's user-definable keys.
A field in the configuration file can be set to indicate whether you wish
to save the values of the user-definable keys prior to entering the
interpreter.
* If the field in the configuration file is set to indicate that the
user-definable keys are saved when you enter the interpreter or at
the start of a compiled program, then when you execute the first keys
statement the keys in the terminal is saved. The values of the
user-definable keys are restored to the terminal when you exit the
program.
* If the field in the configuration file is set to indicate that the
values of the user-definable keys are not saved when you enter the
interpreter, then the first KEY command except SAVE KEY causes the
values of the keys to be set to the default values, blank labels,
local, and BEL. Issuing a SAVE KEY command before executing any keys
statement causes HP Business BASIC/XL to store the current typing aid
key definitions.
Key values are retrieved from a file by issuing a GET KEY command.
However, when you exit HP Business BASIC/XL with the SAVE KEY option in
effect, the previous values are restored as the user-definable key
definitions.
MPE/iX 5.0 Documentation