Lines Matching refs:prompt

313  * 0 if you just want to reset to the command prompt.
541 _readline (const char* prompt, const StrList* possibilities)
555 /* XXX: why isn't prompt const? */
556 line = readline ((char*) prompt);
562 fputs (prompt, stdout);
773 char* prompt = strdup (head);
782 if (strlen (prompt))
783 prompt = realloc_and_cat (prompt, " ");
787 prompt = realloc_and_cat (prompt, "/");
790 prompt = realloc_and_cat (prompt, "[");
791 prompt = realloc_and_cat (prompt, def);
792 prompt = realloc_and_cat (prompt, "]");
795 prompt = realloc_and_cat (prompt, text);
799 prompt = realloc_and_cat (prompt, "? ");
801 if (strlen (prompt))
802 prompt = realloc_and_cat (prompt, " ");
803 prompt = realloc_and_cat (prompt, "[");
804 prompt = realloc_and_cat (prompt, def);
805 prompt = realloc_and_cat (prompt, "]? ");
807 if (strlen (prompt))
808 prompt = realloc_and_cat (prompt, " ");
811 return prompt;
815 command_line_prompt_words (const char* prompt, const char* def,
835 real_prompt = _construct_prompt (prompt, _def, possibilities);
863 command_line_get_word (const char* prompt, const char* def,
886 command_line_prompt_words (prompt, def, possibilities,
894 command_line_get_integer (const char* prompt, int* value)
901 input = command_line_get_word (prompt, *value ? def_str : NULL,
911 command_line_get_sector (const char* prompt, PedDevice* dev, PedSector* value,
919 input = command_line_get_word (prompt, *value ? def_str : NULL,
952 command_line_get_state (const char* prompt, int* value)
961 input = command_line_get_word (prompt, def_word, on_off_list, 1);
974 command_line_get_device (const char* prompt, PedDevice** value)
980 dev_name = command_line_get_word (prompt, def_dev_name, NULL, 1);
994 command_line_get_disk (const char* prompt, PedDisk** value)
998 if (!command_line_get_device (prompt, &dev))
1011 command_line_get_partition (const char* prompt, PedDisk* disk,
1031 if (!command_line_get_integer (prompt, &num)) {
1053 command_line_get_fs_type (const char* prompt, const PedFileSystemType*(* value))
1058 fs_type_name = command_line_get_word (prompt,
1081 command_line_get_disk_type (const char* prompt, const PedDiskType*(* value))
1085 disk_type_name = command_line_get_word (prompt,
1101 command_line_get_part_flag (const char* prompt, const PedPartition* part,
1118 flag_name = command_line_get_word (prompt, NULL, opts, 1);
1167 command_line_get_part_type (const char* prompt, const PedDisk* disk,
1192 type_name = command_line_get_word (prompt, NULL, opts, 1);
1220 command_line_get_ex_opt (const char* prompt, PedExceptionOption options)
1234 opt_name = command_line_get_word (prompt, NULL, options_strlist, 1);
1254 command_line_get_unit (const char* prompt, PedUnit* unit)
1265 unit_name = command_line_get_word (prompt, default_unit_name, opts, 1);