LATCP$HELP.HLB  —  DEFINE  /KEY  Example
  LATCP> DEFINE/KEY PF4 "SHOW NODE " /NOTERMINATE/SET_STATE=GOLD
  LATCP> DEFINE/KEY PF4 "/ALL"/IF_STATE=GOLD/TERMINATE

      The first DEFINE/KEY command in this example assigns the SHOW
      NODE command to function key PF4. To process the SHOW NODE
      command, you must press Return after pressing PF4. Note the
      space after the word NODE in the first DEFINE/KEY command. This
      space allows you to enter a node name after pressing PF4. When
      you press Return, the SHOW NODE command is processed. If the
      space is omitted, LATCP does not recognize the command (SHOW
      NODE). The state is set to GOLD; that state will be in effect
      for the next key that you press.

      The second DEFINE/KEY command defines the use of the PF4 key
      when the keypad is in the GOLD state. When you press PF4 twice,
      the SHOW NODE/ALL command is processed.
Close Help