Lines Matching defs:prompt

219  * Spawn an [X]dialog(1) `--gauge' box with a `--prompt' value of init_prompt.
290 * `--gauge' widget prompt-updates. Add it anyway (in-case it
339 * Returns the number of lines in buffer pointed to by `prompt'. Takes both
343 dialog_prompt_numlines(const char *prompt, uint8_t nlstate)
346 const char *cp = prompt;
349 if (prompt == NULL || *prompt == '\0')
378 * `prompt'. Takes newlines and escaped newlines into account. Also discounts
382 dialog_prompt_longestline(const char *prompt, uint8_t nlstate)
386 const char *p = prompt;
390 /* `prompt' parameter is required */
391 if (prompt == NULL)
393 if (*prompt == '\0')
446 * Returns a pointer to the last line in buffer pointed to by `prompt'. Takes
449 * `prompt' is returned. If passed a NULL pointer, returns NULL.
452 dialog_prompt_lastline(char *prompt, uint8_t nlstate)
458 if (prompt == NULL)
460 if (*prompt == '\0')
461 return (prompt); /* shortcut */
463 lastline = p = prompt;
490 * pointed to by `prompt' within `ncols' columns (for prompts, this should be
495 dialog_prompt_wrappedlines(char *prompt, int ncols, uint8_t nlstate)
500 char *p = prompt;
504 /* `prompt' parameter is required */
568 * Returns zero if the buffer pointed to by `prompt' contains an escaped
589 * if you plan to combine multiple strings into a single prompt text. In lead-
591 * and heights of each piece of prompt text to later be combined. However, if
601 dialog_prompt_nlstate(const char *prompt)
605 if (prompt == NULL)
611 cp = prompt + strlen(prompt);
612 while (--cp >= prompt) {
614 * If we get to a literal newline first, this prompt ends in a
616 * get to an escaped newline first, this prompt ends in an un-
621 else if (*cp == 'n' && --cp > prompt && *cp == '\\')