Make your console applications pretty with variety of colors!
Compatible with:
- Any shell with PS1 support //(PS1)
Building: make
Linking: gcc example.c clr.o
Include: #include "color.h"
Installing: make install
Linking: gcc example.c -lcolor
Include: #include <ykb39/color.h>
Uninstall: make uninstall
// Local
#include "color.h"
// System-wide
#include <ykb39/color.h>
#include <stdio.h>
void main() {
/* Print one line of red text: */
printf_red("Red Text\n");
/* Print one line of formatted text */
int x = 3;
printf_red("int x = %d\n", x);
/* Init color (Colorize multiple lines): */
clr_red();
printf("First red line\n");
printf("Second red line\n);
/* Remove color output (reset color): */
resetcolor();
printf("This text is not red\n");
}