osmanip
Library with useful output stream tools like: color and style manipulators, progress bars and terminal graphics.
Namespaces | Functions | Variables
cursor.cpp File Reference
#include <osmanip/manipulators/cursor.hpp>
#include <osmanip/utility/generic.hpp>
#include <stdint.h>
#include <exception>
#include <sstream>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <utility>
Include dependency graph for cursor.cpp:

Namespaces

 osm
 

Functions

const std::string osm::feat (const string_pair_map &generic_map, const std::string &feat_string, int32_t feat_int)
 This overload, with respect to the standard function definition, takes an std::map object as the first argument, but with an std::pair as second type and additionally takes an extra integer argument to correctly set the parameter of the crs map. More...
 
const std::string osm::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 returns the interested position you want to reach. More...
 

Variables

const string_pair_map osm::crs
 It is used to store the cursor commands. More...
 
const std::unordered_map< std::string, std::string > osm::tcs
 It is used to store the terminal control sequences. More...
 
const string_pair_map osm::tcsc
 It is used to store the terminal control sequences for clear line / screen. More...
 

Detailed Description

Author
Gianluca Bianco (bianc.nosp@m.ogia.nosp@m.nluca.nosp@m.9@gm.nosp@m.ail.c.nosp@m.om)
Date
2022-06-06