- Note: ~ is not expanded in SCYTHERDIR because it is not handled by the shell; thus $HOME should be used.
532 B
532 B
/** @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)
{
}
*
* 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)
{
}