41Result prompt(
const std::string& message,
const std::string& first_option,
const std::string& second_option,
const std::string& prompt_indicator,
bool);
69 std::vector<std::string>
lines{
""};
75std::string
concat(
const std::vector<std::string>&);
77std::vector<std::string>
split(
const std::string&);
83std::string
prompt_multiline(
const std::string&, std::vector<std::string>&, std::function<
bool(std::string)>&);
std::vector< std::string > lines
std::string prompt_string
Represents a rectangular window, as a 2D array of characters and their attributes.
std::string prompt_multiline(const std::string &, std::vector< std::string > &, std::function< bool(std::string)> &)
std::vector< std::string > split(const std::string &)
void print_left_curly_bracket(Term::Window &, const std::size_t &, const std::size_t &, const std::size_t &)
Result prompt(const std::string &message, const std::string &first_option, const std::string &second_option, const std::string &prompt_indicator, bool)
A simple yes/no prompt, requires the user to press the ENTER key to continue.
std::string concat(const std::vector< std::string > &)
Result_simple prompt_simple(const std::string &message)
The most simple prompt possible, requires the user to press enter to continue.
void render(Term::Window &, const Model &, const std::size_t &)
@ Invalid
Returned if the given input did not match the case yes of no.
@ None
Returned if the enter key was pressed without additional input.
@ Abort
Returned if CTRL+C was pressed.
@ Error
Returned if no terminal is attached to the program.
@ Yes
Returned if the user chose yes.
@ No
Returned if the user chose no.