PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
pCmdPrompt
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
  Syntax:  PCMD pCmdPrompt( char far *Prompt, char far *Prompt2,
                            char far *Key );
 
  Returns: PCMD for the keystroke pressed.
 
  See:     DoStatusBox, ReadCmd, Command Table
 
     The pCmdPrompt function displays a status box containing the
     <Prompt> and <Prompt2> strings and waits for a keystroke. The
     function returns a pointer to a cmdDesc structure with information
     about the command associated with the key that is pressed.
 
     If <Key> is not NULL, the name of the key is returned in the
     string.
 
     The <Prompt2> argument may be NULL. In this case, the box contains
     a single line with the <Prompt> string.
 
     ReadCmd or pCmdPrompt can be used to emulate some of the
     functionality of the Tell function.
     See: PWB Tell function
                                    -♦-