osmanip
Library with useful output stream tools like: color and style manipulators, progress bars and terminal graphics.
colsty.hpp
Go to the documentation of this file.
1 //====================================================
2 // File data
3 //====================================================
13 //====================================================
14 // Preprocessor settings
15 //====================================================
16 #pragma once
17 #ifndef OSMANIP_MANIPULATORS_COLSTY_HPP
18 #define OSMANIP_MANIPULATORS_COLSTY_HPP
19 
20 //====================================================
21 // Headers
22 //====================================================
23 
24 // My headers
26 
27 // STD headers
28 #include <cstdint>
29 #include <string>
30 #include <unordered_map>
31 
32 namespace osm {
33 
34  //====================================================
35  // Variables
36  //====================================================
37  extern const std::unordered_map<std::string, std::string> col, sty, rst;
38 
39  //====================================================
40  // Functions
41  //====================================================
42  extern const std::string RGB(int32_t r, int32_t g, int32_t b);
43 } // namespace osm
44 
45 #endif
Definition: canvas.cpp:30
const std::unordered_map< std::string, std::string > rst
It is used to store the reset features commands.
Definition: colsty.cpp:114
const std::unordered_map< std::string, std::string > sty
It is used to store the styles.
Definition: colsty.cpp:95
const std::unordered_map< std::string, std::string > col
It is used to store the colors. Note: "bg" is the prefix of the background color features and "bd" is...
Definition: colsty.cpp:39
const std::string RGB(int32_t r, int32_t g, int32_t b)
It takes three integers as arguments which are the corresponding rgb triplets of a color (see here fo...
Definition: colsty.cpp:151