14 #define BACKSPACE '\b' 15 #define BACKSLASH_ZERO '\0' 16 #define UP_ARROW_KEY {72} 17 #define DOWN_ARROW_KEY {80} 23 #define BACKSLASH_ZERO ' ' 24 #define UP_ARROW_KEY {27, 91, 65} 25 #define DOWN_ARROW_KEY {27, 91, 66} 31 explicit auto_complete(std::set<std::string> dictionary,
bool bypass =
false);
32 std::string
get_line(std::function<
bool()> to_stop = []() {
return false;});
37 void backspace(
const int num_of_backspaces);
40 std::vector<std::string>
search(
const std::string& word)
const;
std::vector< std::string > search(const std::string &word) const
std::string get_last_word(const std::string &line) const
std::set< std::string > _dictionary
bool _is_first_time_up_arrow
auto_complete(std::set< std::string > dictionary, bool bypass=false)
static const textual_icon stop
std::vector< std::string > _history_words
void handle_special_key(const std::vector< uint8_t > &chars)
std::string get_line(std::function< bool()> to_stop=[]() {return false;})
std::vector< char > _chars2_queue
std::string chars2_queue_to_string() const
std::vector< std::string > _finds_vec
void backspace(const int num_of_backspaces)
unsigned _history_words_index
int _num_of_chars2_in_line
char getch_nolock(std::function< bool()> stop=[](){return false;})