17 #ifndef OSMANIP_MANIPULATORS_CURSOR_HPP 
   18 #define OSMANIP_MANIPULATORS_CURSOR_HPP 
   30 #include <unordered_map> 
   38     using string_pair_map = std::unordered_map<std::string, std::pair<std::string, std::string>>;
 
   43     extern const std::unordered_map<std::string, std::string> 
tcs;
 
   49     extern const std::string 
feat(
const string_pair_map &generic_map, 
const std::string &feat_string, int32_t feat_int);
 
   50     extern const std::string 
go_to(int32_t x, int32_t y);
 
Definition: canvas.cpp:30
std::unordered_map< std::string, std::pair< std::string, std::string > > string_pair_map
Definition: cursor.hpp:38
const std::unordered_map< std::string, std::string > tcs
It is used to store the terminal control sequences.
Definition: cursor.cpp:56
const std::string go_to(int32_t x, int32_t y)
It takes two integers as arguments which are the x and y position of the cursor in the screen and ret...
Definition: cursor.cpp:126
const string_pair_map tcsc
It is used to store the terminal control sequences for clear line / screen.
Definition: cursor.cpp:80
const string_pair_map crs
It is used to store the cursor commands.
Definition: cursor.cpp:42
const std::string & feat(const std::unordered_map< std::string, std::string > &generic_map, const std::string &feat_string)
It takes an std::map object as the first argument and an std::string object (map key) as the second a...
Definition: common.cpp:41