00001 /*************************************************************************** 00002 * 00003 * Copyright (C) 2009-2010 Cassio Neri Moreira 00004 * 00005 * This file is part of the KeyValue library. 00006 * 00007 * The KeyValue library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License as published 00009 * by the Free Software Foundation, either version 3 of the License, or (at 00010 * your option) any later version. 00011 * 00012 * The KeyValue library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 00015 * Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License along 00018 * with KeyValue. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 **************************************************************************/ 00021 00028 #ifndef KEYVALUE_SYS_LOGGER_CONSOLECOLORS_H_ 00029 #define KEYVALUE_SYS_LOGGER_CONSOLECOLORS_H_ 00030 00031 namespace keyvalue { 00032 namespace logger { 00033 00034 // Colors as in a Xterm console 00035 // bit pattern: bBGR where b = bold, R = red, G = green, B = blue 00036 00042 enum Color { // Dec Bin 00043 black = 0, // 00 0000 00044 red, // 01 0001 00045 green, // 02 0010 00046 yellow, // 03 0011 00047 blue, // 04 0100 00048 pink, // 05 0101 00049 cyan, // 06 0110 00050 white, // 07 0111 00051 grey, // 08 1000 00052 bold_red, // 09 1001 00053 bold_green, // 10 1010 00054 bold_yellow, // 11 1011 00055 bold_blue, // 12 1100 00056 bold_pink, // 13 1101 00057 bold_cyan, // 14 1110 00058 bold_white // 15 1111 00059 }; 00060 00061 } // namespace logger 00062 } // namespace keyvalue 00063 00064 #endif // KEYVALUE_SYS_LOGGER_CONSOLECOLORS_H_