textcolor in C:
(I=intensity; R=red; G=green; B=blue; 000=black; 111=white;)
Background |
Foreground |
I | R |
G | B |
I | R |
G | B |
128 | 64 | 32 | 16 |
8 | 4 | 2 | 1 |
int color = ;
DEV-CPP:
#include <windows.h>
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
);
#include "console.c"
setrgb(color);
Turbo C:
#include <conio.h>
textcolor(4);
textcolor(RED);
textbackground(4+2);
cprintf("red text on yellow background...");