Library /sys$common/syshlp/mailhelp.hlb
DEFINE, /KEY, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    1.MAIL> DEFINE/KEY PF1 "DIRECTORY"

      This example shows how to define the keypad key PF1 as the
      DIRECTORY command. To enter the DIRECTORY command, press PF1
      followed by the Return key.

    2.MAIL> DEFINE/KEY KP6 "EDIT" /TERMINATE

      This example shows how to define the keypad key 6 (KP6) as the
      EDIT command. The /TERMINATE qualifier causes the EDIT command
      to execute when you press KP6; you do not have to press the
      Return key.

    3.MAIL> DEFINE/KEY PF2 "SET "/SET_STATE=ALTERED

      MAIL> DEFINE/KEY PF3 "FILE" /IF_STATE=ALTERED /TERMINATE

      In this example, the PF2 key is defined as the SET command,
      with the state name ALTERED. Then, the PF3 key is defined to
      output the string FILE when the state ALTERED is specified.

      The /TERMINATE qualifier is used to end the command line. When
      you specify the /TERMINATE qualifier, you can avoid pressing
      the Return key to execute the command line. After you define
      PF2 and PF3, you can use them together. Press PF2 to produce
      the first half of the command line (SET) and press PF3 to
      finish the command line (FILE).

    4.MAIL> DEFINE/KEY PF4 "SET " /SET_STATE=ALTERED
      MAIL> DEFINE/KEY KP7 "FILE" /TERMINATE /IF_STATE=ALTERED
      MAIL> DEFINE/KEY KP8 "FORWARD" /TERMINATE /IF_STATE=ALTERED
      MAIL> DEFINE/KEY KP9 "WASTEBASKET" /TERMINATE /IF_STATE=ALTERED

      This example shows how to define four different keys and
      associate them with a state named ALTERED:

      1. The first definition defines the key PF4 as the SET command
         and associates this key with a state named ALTERED.

      2. The second definition defines the keypad key 7 as "FILE" and
         makes it dependent on a state named ALTERED. When you press
         PF4 followed by keypad key 7, Mail executes the SET FILE
         command.

      3. The third definition defines keypad key 8 as "FORWARD" and
         also makes it dependent on the ALTERED state. When you press
         PF4 followed by keypad key 8, Mail executes the SET FORWARD
         command.

      4. The fourth definition defines keypad key 9 as "WASTEBASKET"
         and also makes it dependent on the ALTERED state. When you
         press PF4 followed by keypad key 9, Mail executes the SET
         WASTEBASKET command.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.