scyther/src/color.c

33 lines
532 B
C
Raw Normal View History

/** @file color.c \brief Color output for terminals.
*
* Depends on the switches (to disable them with a --plain switch)
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "switches.h"
char *empty = "";
char *COLOR_Reset = "";
char *COLOR_Red = "";
char *COLOR_Green = "";
char *COLOR_Bold = "";
void
colorInit (void)
{
if (switches.plain)
{
COLOR_Reset = empty;
COLOR_Red = empty;
COLOR_Green = empty;
COLOR_Bold = empty;
}
}
void
colorDone (void)
{
}