Logo
~Sockets~
~Examples~
~Contact~


color.h

Go to the documentation of this file.
00001 
00002 //Wolfshade MUD server
00003 //Copyright (C) 1999 Demetrius and John Comes
00004 //
00005 //This program is free software; you can redistribute it and/or
00006 //modify it under the terms of the GNU General Public License
00007 //as published by the Free Software Foundation; either version 2
00008 //of the License, or (at your option) any later version.
00009 //
00010 //This program is distributed in the hope that it will be useful,
00011 //but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //GNU General Public License for more details.
00014 //
00015 //You should have received a copy of the GNU General Public License
00016 //along with this program; if not, write to the Free Software
00017 //Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 #define CNUL  ""
00020 
00021 /*             Plain Colors            has the CNRM before it to reset color!*/
00022 #define CNRM  "\x1B[0;0m"       /* &n */
00023 #define CRED  "\x1B[0;0m\x1B[31m"       /* &r */
00024 #define CGRN  "\x1B[0;0m\x1B[32m"       /* &g */
00025 #define CYEL  "\x1B[0;0m\x1B[33m"       /* &y */
00026 #define CBLU  "\x1B[0;0m\x1B[34m"       /* &b */
00027 #define CMAG  "\x1B[0;0m\x1B[35m"       /* &m */
00028 #define CCYN  "\x1B[0;0m\x1B[36m"       /* &c */
00029 #define CWHT  "\x1B[0;0m\x1B[37m"       /* &w */
00030 #define CBLK  "\x1B[0;0m\x1B[30m"       /* &l */
00031 
00032 /*              Bold Colors            */
00033 #define BRED  "\x1B[1;31m"      /* &R */
00034 #define BGRN  "\x1B[1;32m"      /* &G */
00035 #define BYEL  "\x1B[1;33m"      /* &Y */
00036 #define BBLU  "\x1B[1;34m"      /* &B */
00037 #define BMAG  "\x1B[1;35m"      /* &M */
00038 #define BCYN  "\x1B[1;36m"      /* &C */
00039 #define BWHT  "\x1B[1;37m"      /* &W */
00040 #define BBLK  "\x1B[1;30m"      /* &L */
00041 
00042 /*             Backgrounds             */
00043 #define BKRED  "\x1B[41m"       /* &e */
00044 #define BKGRN  "\x1B[42m"       /* &k */
00045 #define BKYEL  "\x1B[43m"       /* &p */
00046 #define BKBLU  "\x1B[44m"       /* &u */
00047 #define BKMAG  "\x1B[45m"       /* &a */
00048 #define BKCYN  "\x1B[46m"       /* &f */
00049 #define BKWHT  "\x1B[47m"       /* &h */
00050 #define BKBLK  "\x1B[40m"       /* &i */
00051 
00052 /*         Underline, Flashing         */
00053 #define UNDER  "\x1B[4m"        /* &U */
00054 #define FLASH  "\x1B[5m"        /* &F */
00055 
00056 //const char *COLORLIST[] = {CNRM, CRED, CGRN, CYEL, CBLU, CMAG, CCYN, CWHT, CBLK,
00057 //                         BRED, BGRN, BYEL, BBLU, BMAG, BCYN, BWHT, BBLK,
00058 //                         BKRED,BKGRN,BKYEL,BKBLU,BKMAG,BKCYN,BKWHT,BKBLK,
00059 //                         UNDER,FLASH};
00060 //we'll use a switch so we can use letters
00061 #define MAX_COLORS 26
00062 
00063 
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4