Lines Matching refs:prompt

308  * 0 if you just want to reset to the command prompt.
549 _readline (const char* prompt, const StrList* possibilities)
563 /* XXX: why isn't prompt const? */
564 line = readline ((char*) prompt);
570 fputs (prompt, stdout);
783 char* prompt = strdup (head);
792 if (strlen (prompt))
793 prompt = realloc_and_cat (prompt, " ");
797 prompt = realloc_and_cat (prompt, "/");
800 prompt = realloc_and_cat (prompt, "[");
801 prompt = realloc_and_cat (prompt, def);
802 prompt = realloc_and_cat (prompt, "]");
805 prompt = realloc_and_cat (prompt, text);
809 prompt = realloc_and_cat (prompt, "? ");
811 if (strlen (prompt))
812 prompt = realloc_and_cat (prompt, " ");
813 prompt = realloc_and_cat (prompt, "[");
814 prompt = realloc_and_cat (prompt, def);
815 prompt = realloc_and_cat (prompt, "]? ");
817 if (strlen (prompt))
818 prompt = realloc_and_cat (prompt, " ");
821 return prompt;
825 command_line_prompt_words (const char* prompt, const char* def,
845 real_prompt = _construct_prompt (prompt, _def, possibilities);
877 command_line_get_word (const char* prompt, const char* def,
900 command_line_prompt_words (prompt, def, possibilities,
908 command_line_get_integer (const char* prompt, int* value)
915 input = command_line_get_word (prompt, *value ? def_str : NULL,
925 command_line_get_sector (const char* prompt, PedDevice* dev, PedSector* value,
933 input = command_line_get_word (prompt, *value ? def_str : NULL,
966 command_line_get_state (const char* prompt, int* value)
975 input = command_line_get_word (prompt, def_word, on_off_list, 1);
988 command_line_get_device (const char* prompt, PedDevice** value)
991 char *dev_name = command_line_get_word (prompt, def_dev_name, NULL, 1);
1005 command_line_get_disk (const char* prompt, PedDisk** value)
1009 if (!command_line_get_device (prompt, &dev))
1023 command_line_get_partition (const char* prompt, PedDisk* disk,
1043 if (!command_line_get_integer (prompt, &num)) {
1065 command_line_get_fs_type (const char* prompt, const PedFileSystemType*(* value))
1070 fs_type_name = command_line_get_word (prompt,
1093 command_line_get_disk_type (const char* prompt, const PedDiskType*(* value))
1097 disk_type_name = command_line_get_word (prompt,
1113 command_line_get_part_flag (const char* prompt, const PedPartition* part,
1130 flag_name = command_line_get_word (prompt, NULL, opts, 1);
1179 command_line_get_part_type (const char* prompt, const PedDisk* disk,
1204 type_name = command_line_get_word (prompt, NULL, opts, 1);
1232 command_line_get_ex_opt (const char* prompt, PedExceptionOption options)
1246 opt_name = command_line_get_word (prompt, NULL, options_strlist, 1);
1266 command_line_get_align_type (const char *prompt, enum AlignmentType *align_type)
1275 input = command_line_get_word (prompt, def_word, align_opt_min_list, 1);
1287 command_line_get_unit (const char* prompt, PedUnit* unit)
1298 unit_name = command_line_get_word (prompt, default_unit_name, opts, 1);