mux/src/ansi.h

Go to the documentation of this file.
00001 // ansi.h
00002 //
00003 // $Id: ansi.h,v 1.1 2003/01/22 19:58:25 sdennis Exp $ */
00004 //
00005 // ANSI control codes for various neat-o terminal effects
00006 //
00007 // Some older versions of Ultrix don't appear to be able to handle these
00008 // escape sequences. If lowercase 'a's are being stripped from @doings,
00009 // and/or the output of the ANSI flag is screwed up, you have the Ultrix
00010 // problem.
00011 //
00012 
00013 #ifndef _ANSI_H
00014 #define _ANSI_H
00015 
00016 #define BEEP_CHAR     '\07'
00017 #define ESC_CHAR      '\033'
00018 #define ANSI_ATTR_CMD 'm'
00019 
00020 #define ANSI_NORMAL   "\033[0m"
00021 
00022 #define ANSI_HILITE   "\033[1m"
00023 #define ANSI_UNDER    "\033[4m"
00024 #define ANSI_BLINK    "\033[5m"
00025 #define ANSI_INVERSE  "\033[7m"
00026 
00027 // Foreground colors.
00028 //
00029 #define ANSI_FOREGROUND "\033[3"
00030 #define ANSI_BLACK      "\033[30m"
00031 #define ANSI_RED        "\033[31m"
00032 #define ANSI_GREEN      "\033[32m"
00033 #define ANSI_YELLOW     "\033[33m"
00034 #define ANSI_BLUE       "\033[34m"
00035 #define ANSI_MAGENTA    "\033[35m"
00036 #define ANSI_CYAN       "\033[36m"
00037 #define ANSI_WHITE      "\033[37m"
00038 
00039 // Background colors.
00040 //
00041 #define ANSI_BACKGROUND "\033[4"
00042 #define ANSI_BBLACK     "\033[40m"
00043 #define ANSI_BRED       "\033[41m"
00044 #define ANSI_BGREEN     "\033[42m"
00045 #define ANSI_BYELLOW    "\033[43m"
00046 #define ANSI_BBLUE      "\033[44m"
00047 #define ANSI_BMAGENTA   "\033[45m"
00048 #define ANSI_BCYAN      "\033[46m"
00049 #define ANSI_BWHITE     "\033[47m"
00050 
00051 #endif // !_ANSI_H

Generated on Mon May 28 04:40:07 2007 for MUX by  doxygen 1.4.7