cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
prompt.hpp File Reference
#include "cpp-terminal/terminal.hpp"
#include "cpp-terminal/window.hpp"
#include <functional>

Go to the source code of this file.

Classes

class  Term::Model
 

Namespaces

namespace  Term
 

Enumerations

enum class  Term::Result {
  Term::Yes , Term::No , Term::Error , Term::None ,
  Term::Abort , Term::Invalid
}
 
enum class  Term::Result_simple { Term::Yes , Term::No , Term::Abort }
 

Functions

Result Term::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.
 
Result_simple Term::prompt_simple (const std::string &message)
 The most simple prompt possible, requires the user to press enter to continue.
 
std::string Term::concat (const std::vector< std::string > &)
 
std::vector< std::string > Term::split (const std::string &)
 
void Term::print_left_curly_bracket (Term::Window &, const std::size_t &, const std::size_t &, const std::size_t &)
 
void Term::render (Term::Window &, const Model &, const std::size_t &)
 
std::string Term::prompt_multiline (const std::string &, std::vector< std::string > &, std::function< bool(std::string)> &)