proceed choice is one of: proceed, abort
The clearprompt command prompts the user for input, then either stores the input in a file or returns an appropriate exit status. clearprompt is designed for use in trigger action and GUI scripts. (See the mktrtype reference page.)
On UNIX and Linux systems, clearprompt can interact with the user either through stdin and stderr (CLI mode), or through a pop-up window (GUI mode). It uses the latter style when a trigger fires on an operation invoked through the GUI program xclearcase.
A trigger action script (or any other script) can use the exit status of clearprompt proceed or clearprompt yes_no to perform conditional processing:
text prompts for a single text line (with no trailing <NL> character). text –multi_line works just like cleartool comment input: in command-line mode, the user can enter any number of lines (on UNIX and Linux systems, terminated with Return or Ctrl+D). If the -multi_line option is not used, a text string that exceeds 138 characters (all uppercase) or 193 characters (all lowercase) will be truncated.
file prompts for a file name or, if –prefer_gui is specified, opens a file browser window.
list prompts for a choice from a list of items.
proceed prompts for a choice between the alternatives proceed and abort. The default for this option is proceed unless you override it by specifying –default abort.
yes_no prompts for a choice among the alternatives yes, no, and abort. The default for this option is yes unless you override it by specifying –default no or –default abort.
By default, this window displays the names of all files in the current working directory. You can use the –directory and/or –pattern option to specify a different directory and/or file name pattern (for example, *.c) to restrict which file names are displayed. The user can change the filter after the file browser starts.
% clearprompt text -outfile uname -default $USER -prompt
"Enter User Name:"
y:\> clearprompt yes_no -prompt "Do You Want to Continue?" ^
-default no -mask yes,no
% clearprompt yes_no -prompt "OK to continue?" -mask abort -prefer_gui
c:\> clearprompt file -prompt "Select File From List" -outfile myfile ^
-pattern '*.c'