console_colors.h

00001
00002 /***************************************************************************
00003  *  pipeline.h - This header defines a image processing pipeline for the
00004  *               front camera
00005  *
00006  *  Generated: Wed Jun 15 16:30:22 2005 (from FireVision)
00007  *  Copyright  2005-2007  Tim Niemueller [www.niemueller.de]
00008  *
00009  ****************************************************************************/
00010
00011 /*  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version. A runtime exception applies to
00015  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU Library General Public License for more details.
00021  *
00022  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00023  */
00024
00025 #ifndef __UTILS_CONSOLE_COLORS_H_
00026 #define __UTILS_CONSOLE_COLORS_H_
00027 
00028 #include <string>
00029
00030 namespace fawkes {
00031 
00032   /** Print black on console */
00033   static const char *c_black = "\033[0;30m";
00034   /** Print black on console */
00035   static std::string cblack(c_black);
00036 
00037   /** Print dark gray on console */
00038   static const char *c_darkgray = "\033[1;30m";
00039   /** Print dark gray on console */
00040   static std::string cdarkgray(c_darkgray);
00041 
00042   /** Print red on console */
00043   static const char *c_red = "\033[0;31m";
00044   /** Print red on console */
00045   static std::string cred(c_red);
00046 
00047   /** Print light red on console */
00048   static const char *c_lightred = "\033[1;31m";
00049   /** Print light red on console */
00050   static std::string clightred(c_lightred);
00051 
00052   /** Print green on console */
00053   static const char *c_green = "\033[0;32m";
00054   /** Print green on console */
00055   static std::string cgreen(c_green);
00056 
00057   /** Print light green on console */
00058   static const char *c_lightgreen = "\033[1;32m";
00059   /** Print light green on console */
00060   static std::string clightgreen(c_lightgreen);
00061 
00062   /** Print brown on console */
00063   static const char *c_brown = "\033[0;33m";
00064   /** Print brown on console */
00065   static std::string cbrown(c_brown);
00066 
00067   /** Print yellow on console */
00068   static const char *c_yellow = "\033[1;33m";
00069   /** Print yellow on console */
00070   static std::string cyellow(c_yellow);
00071 
00072   /** Print blue on console */
00073   static const char *c_blue = "\033[0;34m";
00074   /** Print blue on console */
00075   static std::string cblue(c_blue);
00076 
00077   /** Print light blue on console */
00078   static const char *c_lightblue = "\033[1;34m";
00079   /** Print light blue on console */
00080   static std::string clightblue(c_lightblue);
00081 
00082   /** Print purple on console */
00083   static const char *c_purple = "\033[0;35m";
00084   /** Print purple on console */
00085   static std::string cpurple(c_purple);
00086 
00087   /** Print light purple on console */
00088   static const char *c_lightpurple = "\033[1;35m";
00089   /** Print light purple on console */
00090   static std::string clightpurple(c_lightpurple);
00091 
00092   /** Print cyan on console */
00093   static const char *c_cyan = "\033[0;36m";
00094   /** Print cyan on console */
00095   static std::string ccyan(c_cyan);
00096 
00097   /** Print light cyan on console */
00098   static const char *c_lightcyan = "\033[1;36m";
00099   /** Print light cyan on console */
00100   static std::string clightcyan(c_lightcyan);
00101 
00102   /** Print light gray on console */
00103   static const char *c_lightgray = "\033[0;37m";
00104   /** Print light gray on console */
00105   static std::string clightgray(c_lightgray);
00106 
00107   /** Print white on console */
00108   static const char *c_white = "\033[1;37m";
00109   /** Print white on console */
00110   static std::string cwhite(c_white);
00111 
00112   /** Print normal on console, without colors, depends on console settings */
00113   static const char *c_normal = "\033[0;39m";
00114   /** Print normal on console, without colors, depends on console settings */
00115   static std::string cnormal(c_normal);
00116
00117 }
00118
00119 #endif