Library /sys$common/syshlp/DBG$HELP.HLB  —  DEBUG  DEFINE  /KEY  Examples
    1.DBG> SET KEY/STATE=GOLD
      %DEBUG-I-SETKEY, keypad state has been set to GOLD
      DBG> DEFINE/KEY/TERMINATE KP9 "SET RADIX/OVERRIDE HEX"
      %DEBUG-I-DEFKEY, GOLD key KP9 has been defined

      In this example, the SET KEY command establishes GOLD as
      the current key state. The DEFINE/KEY command assigns the
      SET RADIX/OVERRIDE HEX command to keypad key 9 (KP9) for the
      current state (GOLD). The command is processed when you press
      the key.

    2.DBG> DEFINE/KEY/IF_STATE=BLUE KP9 "SET BREAK %LINE "
      %DEBUG-I-DEFKEY, BLUE key KP9 has been defined

      This command assigns the unterminated command string "SET BREAK
      %LINE" to keypad key 9 for the BLUE state. After pressing BLUE-
      KP9, you can enter a line number and then press the Return key
      to terminate and process the SET BREAK command.

    3.DBG> SET KEY/STATE=DEFAULT
      %DEBUG-I-SETKEY, keypad state has been set to DEFAULT
      DBG> DEFINE/KEY/SET_STATE=RED/LOCK_STATE F12 ""
      %DEBUG-I-DEFKEY, DEFAULT key F12 has been defined

      In this example, the SET KEY command establishes DEFAULT as
      the current state. The DEFINE/KEY command makes the F12 key
      (on an LK201 keyboard) a state key. Pressing F12 while in
      the DEFAULT state causes the current state to become RED. The
      key definition is not terminated and has no other effect (a
      null string is assigned to F12). After pressing F12, you can
      enter "RED" commands by pressing keys that have definitions
      associated with the RED state.
Close Help