teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
#include <colors.h>
Public Member Functions | |
void | add (const NameColorPair &ncp) |
populate the map with the name-color pair At first, the color string is assumed to be another key to the already existing map, if that's not the case, then it is assumed to be a named color string More... | |
const AttrColor & | get (const std::string &name) const |
void | clear () |
AttrColor | readColor (const std::string &str) |
Color map used for highlights/colors by the editor
void teditor::ColorMap::add | ( | const NameColorPair & | ncp | ) |
populate the map with the name-color pair At first, the color string is assumed to be another key to the already existing map, if that's not the case, then it is assumed to be a named color string
|
inline |
const AttrColor & teditor::ColorMap::get | ( | const std::string & | name | ) | const |
AttrColor teditor::ColorMap::readColor | ( | const std::string & | str | ) |
convert attribute/color description into AttrColor