scyther/src/color.c

40 lines
651 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"
2006-01-02 21:06:08 +00:00
//! Substitution string for --plain output
char *empty = "";
2006-01-02 21:06:08 +00:00
//! Reset colors
char *COLOR_Reset = "";
2006-01-02 21:06:08 +00:00
//! Red
char *COLOR_Red = "";
2006-01-02 21:06:08 +00:00
//! Green
char *COLOR_Green = "";
2006-01-02 21:06:08 +00:00
//! Bold
char *COLOR_Bold = "";
2006-01-02 21:06:08 +00:00
//! Init colors
void
colorInit (void)
{
if (switches.plain)
{
COLOR_Reset = empty;
COLOR_Red = empty;
COLOR_Green = empty;
COLOR_Bold = empty;
}
}
2006-01-02 21:06:08 +00:00
//! Exit colors
void
colorDone (void)
{
}