NCPHELP.HLB  —  Prompting  Examples
 The following examples illustrate three types of prompting that NCP
 provides.

 Prompts to supply missing command component keywords:

         NCP>CLEAR <RIGHT>
         (LINE, CIRCUIT, LOGGING, KNOWN, NODE, OBJECT):

 No component is specified for the CLEAR command.  The prompt format is
 a list of admissible component keywords separated by commas.  Note
 that the plural keyword KNOWN is included in this list.

 Prompts to supply parameter values:

         NCP>CLEAR LINE <RIGHT>
         LINE ID (dev-c-u.t):

 NCP prompts for the line-id for this component since it is not provided
 with the command.

 The following example shows variations of the prompting scheme for
 parameter values:

         NCP>SET EXECUTOR <RIGHT>
         Node address           (1.1-63.1023): 2.11
         State    (ON, OFF, SHUT, RESTRICTED): ON
         ...
         Pipeline quota       (0-65535 bytes):6000

 Prompts to select parameter names:

         NCP>CLEAR LINE <RIGHT>
         Line ID       (dev-c-u.t): DMC-1
         All line parameters (Y,N):

 NCP prompts for the selected parameter names whose values are to be
 removed from the database.   In this case, no parameter name was given;
 consequently, NCP asks if all values  should  be  removed.   Y indicates
 that all values should be removed.  N causes NCP to provide a different
 response.  For example,

         NCP>CLEAR NODE BOSTON <RIGHT>
         All node parameters (Y,N): N
         Host node           (Y,N): Y
         Identification      (Y,N): N
         ...
         Service password    (Y,N): Y
         Tertiary loader     (Y,N): N

 Since N is the response to the first prompt above, NCP prompts for all
 of the parameter names.
Close Help