Feature - 256-color support

- Integrated new Color object into task.
- Debugging needed - the cyan, green, and yellow colors are mixed up!
This commit is contained in:
Paul Beckingham 2009-09-22 17:01:59 -04:00
parent 58730a48b3
commit ff3b7cf337
11 changed files with 157 additions and 441 deletions

View file

@ -471,6 +471,15 @@ std::string Color::colorize (const std::string& input, const std::string& spec)
return c.colorize (input);
}
////////////////////////////////////////////////////////////////////////////////
bool Color::nontrivial ()
{
if (value != (_COLOR_NOFG | _COLOR_NOBG))
return true;
return false;
}
////////////////////////////////////////////////////////////////////////////////
int Color::find (const std::string& input)
{