◄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► -♦-