Files
taskwarrior-2.x/src/color.h
2008-04-19 22:11:59 -04:00

24 lines
672 B
C++

////////////////////////////////////////////////////////////////////////////////
// Copyright 2008, Paul Beckingham.
// All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDED_COLOR
#define INCLUDED_COLOR
namespace Text
{
enum color {nocolor = 0, black, red, green, yellow, blue, magenta, cyan, white};
enum attr {normal = 0, underline};
std::string colorName (Text::color);
Text::color colorCode (const std::string&);
std::string attrName (Text::attr);
Text::attr attrCode (const std::string&);
}
#endif
////////////////////////////////////////////////////////////////////////////////