• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/dialog/

Lines Matching defs:prompt

844  * Print one line of the prompt in the window within the limits of the
847 * *prompt is reached.
852 const char *prompt,
858 const int *cols = dlg_index_columns(prompt);
859 const int *indx = dlg_index_wchars(prompt);
864 int limit = dlg_count_wchars(prompt);
875 int ch = *(test_ptr = prompt + indx[test_inx]);
882 && !isblank(UCH(prompt[indx[n - 1]]))) {
900 test_ptr = prompt + indx[test_inx];
903 while (wrap_inx > 0 && isblank(UCH(prompt[indx[wrap_inx - 1]]))) {
914 wrap_ptr = prompt + indx[wrap_inx];
946 dlg_print_text(win, prompt, (cols[wrap_inx] - hidden), attr);
962 dlg_finish_string(prompt);
968 const char *prompt,
988 if (prompt == 0)
989 prompt = "";
993 while (y <= bm && *prompt) {
996 if (*prompt == '\n') {
997 while (*prompt == '\n' && y < bm) {
998 if (*(prompt + 1) != '\0') {
1003 prompt++;
1008 if (*prompt) {
1009 prompt = dlg_print_line(win, &attr, prompt, lm, rm, &x);
1013 if (*prompt) {
1020 /* Move back to the last position after drawing prompt, for msgbox. */
1037 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width)
1039 justify_text(win, prompt,
1055 const char *prompt,
1082 if ((len = dlg_count_columns(prompt)) > high)
1088 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1094 dlg_print_autowrap(dummy, prompt, high, width);
1135 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1199 * dimensions that are at or close to the specified aspect ratio for the prompt
1204 auto_size_preformatted(const char *prompt, int *height, int *width)
1215 justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide);
1225 justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide);
1236 justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide);
1273 const char *prompt,
1287 if (prompt == 0) {
1304 if (prompt != 0) {
1306 if (strchr(prompt, '\n') == 0) {
1308 dlg_count_real_columns(prompt));
1312 wide = MAX(wide, longest_word(prompt));
1313 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1315 auto_size_preformatted(prompt, height, width);
1319 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1324 justify_text((WINDOW *) 0, prompt, high, title_length, height, width);
1333 if (prompt != 0) {
1353 const char *prompt,
1363 real_auto_size(title, prompt, height, width, boxlines, mincols);
1869 dlg_tab_correct_str(char *prompt)
1874 while ((ptr = strchr(prompt, TAB)) != NULL) {
1876 prompt = ptr;
1947 char *prompt = 0;
1949 prompt = dlg_malloc(char, strlen(cprompt) + 1);
1950 assert_ptr(prompt, "dlg_strclone");
1951 strcpy(prompt, cprompt);
1953 return prompt;
2365 if (has_newlines) { /* If prompt contains "\n" strings */