/Color-in-console-application

Header file of coloring console application

Primary LanguageC

Color in console application

Usage :

• First include color.h
• Second Use function as we want to color line

Colors number :
0: Black
1: Blue
2: Green
3: Cyan
4: Red
5: Magenta
6: Brown
7: Lightgray
8: Darkgray
9: Ligthblue
10: Ligthgreen
11: Lightcyan
12: Ligthred
13: Lightmagenta
14: Yellow
15: White

Simple test :

#include <iostream>
#include <color.h>

int main(int argc, char** argv){
    std::cout<<"Standart color"<<std::endl;
    const char *colors[16] = {
    "Black","Blue","Green",
    "Cyan","Red","Magenta",
    "Brown","Lightgray","Darkgray",
    "Ligthblue","Ligthgreen","Lightcyan",
    "Ligthred","Lightmagenta","Yellow","White"};
    for(int i=0;i<16;i++){
    	Coloring(i);
    	std::cout<<"Simple test for "<<colors[i]<<" color"<<std::endl;
    }
    return 0;
}

Code by Konstantine Datunishvili