Color: Readied for when Lexer enters common

This commit is contained in:
Paul Beckingham 2015-12-20 15:07:34 -05:00
parent 31c145ef9e
commit 459702477d

View file

@ -29,6 +29,7 @@
#include <sstream>
#include <vector>
#include <cstdlib>
//#include <Lexer.h>
#include <text.h>
// uint to string lookup table for Color::_colorize()
@ -139,6 +140,8 @@ Color::Color (const std::string& spec)
int index;
for (auto& word : words)
{
// word = Lexer::lowerCase (Lexer::trim (word));
if (word == "bold") fg_value |= _COLOR_BOLD;
else if (word == "bright") bg_value |= _COLOR_BRIGHT;
else if (word == "underline") fg_value |= _COLOR_UNDERLINE;