Color: C++11

This commit is contained in:
Paul Beckingham
2016-02-03 19:39:38 -05:00
parent 4d2c97f2c3
commit 1579705fec
2 changed files with 17 additions and 23 deletions

View File

@@ -29,7 +29,6 @@
#include <string>
////////////////////////////////////////////////////////////////////////////////
#define _COLOR_INVERSE 0x00400000 // Inverse attribute.
#define _COLOR_256 0x00200000 // 256-color mode.
#define _COLOR_HASBG 0x00100000 // Has background color (all values taken).
@@ -57,9 +56,9 @@ public:
void upgrade ();
void blend (const Color&);
std::string colorize (const std::string&);
std::string colorize (const std::string&) const;
static std::string colorize (const std::string&, const std::string&);
void _colorize (std::string&, const std::string&);
void _colorize (std::string&, const std::string&) const;
static std::string strip (const std::string&);
bool nontrivial () const;
@@ -74,5 +73,3 @@ private:
};
#endif
////////////////////////////////////////////////////////////////////////////////