/pcolor

Simple library for coloring C programs at the windows prompt.

Primary LanguageCBSD 2-Clause "Simplified" LicenseBSD-2-Clause

pcolor

Simple library for coloring C programs at the windows prompt.

supported colors

Background Font Color
BACK_BLACK FONT_BLACK
BACK_BLUE FONT_BLUE
BACK_GREEN FONT_GREEN
BACK_AQUA FONT_AQUA
BACK_RED FONT_RED
BACK_PURPLE FONT_PURPLE
BACK_YELLOW FONT_YELLOW
BACK_WHITE FONT_WHITE
BACK_GRAY FONT_GRAY
BACK_LIGHT_BLUE FONT_LIGHT_BLUE
BACK_LIGHT_GREEN FONT_LIGHT_GREEN
BACK_LIGHT_AQUA FONT_LIGHT_AQUA
BACK_LIGHT_RED FONT_LIGHT_RED
BACK_LIGHT_PURPLE FONT_LIGHT_PURPLE
BACK_LIGHT_YELLOW FONT_LIGHT_YELLOW
BACK_LIGHT_WHITE FONT_LIGHT_WHITE

way of use

pprint(string, background color, font color);

Example

#include <stdio.h>
#include "pcolor.h"

int main(void)
{
    printf("Hello world\n");
    pprint("Hello world\n", BACK_BLACK, FONT_LIGHT_GREEN);

    return 0;
}