DEFINE /KEY
/LOG
/NOLOG (D)
Controls whether a message is displayed indicating that the key definition has
been successfully created.
/SET_STATE=state-name
/NOSETSTATE (D)
Controls whether pressing the key changes the current key state.
/SET_STATE
changes the current state to
state-name
when you press the key.
/NOSET_STATE
(the default) causes the current state to remain in effect.
/TERMINATE
/NOTERMINATE (D)
Controls whether the specified string is to be terminated (processed) when the
key is pressed.
/TERMINATE
causes the string to be terminated when the key
is pressed.
/NOTERMINATE
(the default) allows you to press other keys before
terminating the string by pressing the
RETURN
key.
Related Commands
•
SHOW KEY
Examples
1.
RTR> DEFINE /KEY PF3 "SHOW RTR" /TERMINATE
DEFAULT PF3 key has been defined as "SHOW RTR"
RTR>
PF3
RTR running on node BE1
The
DEFINE /KEY
command defines the
PF3
key on the keypad to perform a
SHOW RTR
command. DEFAULT refers to the default state.
2.
RTR> DEFINE /KEY PF1 "HELP " /SET_STATE=GOLD /NOTERMINATE /ECHO
DEFAULT PF1 key has been defined as "HELP "
RTR> DEFINE /KEY PF1 " CREATE" /TERMINATE /IF_STATE=GOLD /ECHO
GOLD PF1 key has been defined as "CREATE"
RTR>
PF1
RTR> HELP
PF1
RTR> HELP CREATE
The "CREATE FACILITY" command is used to ...
The first DEFINE /KEY command defines the
PF1
key to be the string HELP.
The state is set to GOLD for the subsequent key. The /NOTERMINATE
qualifier instructs the system remain in command input mode when the key
is pressed. The second DEFINE /KEY command defines the use of the
PF1
key when the keypad is in the GOLD state. When the keypad is in the GOLD
state, pressing
PF1
will cause the current read to be terminated.
If you press
PF1
twice, the system displays and processes the HELP CREATE
command.
RTR Command Line Interface 6–59