


_O_n_l_i_n_e _M_a_n_u_a_l             User Commands                ckkeywd(1)



NNNNAAAAMMMMEEEE
     ckkeywd - prompts for and validates a keyword

SSSSYYYYNNNNTTTTAAAAXXXX
     cccckkkkkkkkeeeeyyyywwwwdddd [----QQQQ] [----WWWW _w_i_d_t_h] [----dddd _d_e_f_a_u_l_t] [----hhhh _h_e_l_p] [----eeee _e_r_r_o_r]
     [----pppp _p_r_o_m_p_t]
     [----kkkk _p_i_d [----ssss _s_i_g_n_a_l]] [_k_e_y_w_o_r_d [...]]

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     _c_k_k_e_y_w_d prompts a user and validates the response.  It
     defines, among other things, a prompt message whose response
     should be one of a list of keywords, text for help and error
     messages, and a default value (which will be returned if the
     user responds with a carriage return).  The answer returned
     from this command must match one of the defined list of key-
     words.

     All messages are limited in length to 70 characters and are
     formatted automatically.  Any white space used in the defin-
     ition (including newline) is stripped.  The ----WWWW option can-
     cels the automatic formatting.  When a tilde is placed at
     the beginning or end of a message definition, the default
     text will be inserted at that point, allowing both custom
     text and the default text to be displayed.

     If the prompt, help or error message is not defined, the
     default message (as defined under NOTES) will be displayed.

     ----QQQQ   Specifies that quit will not be allowed as a valid
          response.

     ----WWWW   Specifies that prompt, help and error messages will be
          formatted to a line length of _w_i_d_t_h.

     ----dddd   Defines the default value as _d_e_f_a_u_l_t.  The default is
          not validated and so does not have to meet any cri-
          teria.

     ----hhhh   Defines the help messages as _h_e_l_p.

     ----eeee   Defines the error message as _e_r_r_o_r.

     ----pppp   Defines the prompt message as _p_r_o_m_p_t.

     ----kkkk   Specifies that process ID _p_i_d is to be sent a signal if
          the user chooses to abort.

     ----ssss   Specifies that the process ID _p_i_d defined with the ----kkkk
          option is to be sent signal _s_i_g_n_a_l when quit is chosen.
          If no signal is specified, SIGTERM is used.

     _k_e_y_w_o_r_d
          Defines the keyword, or list of keywords, against which
          the answer will be verified.

EEEEXXXXIIIITTTT CCCCOOOODDDDEEEESSSS
     0000 = Successful execution
     1111 = EOF on input
     2222 = Usage error






     3333 = User termination (quit)
     4444 = No keywords from which to choose

NNNNOOOOTTTTEEEESSSS
     The default prompt for _c_k_k_e_y_w_d is:
       EEEEnnnntttteeeerrrr sssseeeelllleeeeccccttttiiiioooonnnn [[[[_k_e_y_w_o_r_d,,,,[[[[............]]]],,,,????,,,,qqqq]]]]::::
    The default error message is:
      EEEERRRRRRRROOOORRRR ---- DDDDooooeeeessss nnnnooootttt mmmmaaaattttcccchhhh aaaannnnyyyy ooooffff tttthhhheeee vvvvaaaalllliiiidddd sssseeeelllleeeeccccttttiiiioooonnnnssss....
      PPPPlllleeeeaaaasssseeee eeeennnntttteeeerrrr oooonnnneeee ooooffff tttthhhheeee ffffoooolllllllloooowwwwiiiinnnngggg kkkkeeeeyyyywwwwoooorrrrddddssss::::
      _k_e_y_w_o_r_d[[[[,,,,............]]]]
   The default help message is:
     PPPPlllleeeeaaaasssseeee eeeennnntttteeeerrrr oooonnnneeee ooooffff tttthhhheeee ffffoooolllllllloooowwwwiiiinnnngggg kkkkeeeeyyyywwwwoooorrrrddddssss::::
     _k_e_y_w_o_r_d[[[[,,,,............]]]]
  When the quit option is chosen (and allowed), qqqq is returned
  along with the return code 3333.

August 1991                                   TX User's Reference











































