-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.c
33 lines (29 loc) · 1.56 KB
/
demo.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>
#include "colorc.h"
int main() {
printf("%sBlack text%s\n", FORE_BLACK, RESET_ALL);
printf("%sRed text%s\n", FORE_RED, RESET_ALL);
printf("%sGreen text%s\n", FORE_GREEN, RESET_ALL);
printf("%sYellow text%s\n", FORE_YELLOW, RESET_ALL);
printf("%sBlue text%s\n", FORE_BLUE, RESET_ALL);
printf("%sMagenta text%s\n", FORE_MAGENTA, RESET_ALL);
printf("%sCyan text%s\n", FORE_CYAN, RESET_ALL);
printf("%sWhite text%s\n\n", FORE_WHITE, RESET_ALL);
printf("%sBlack background%s\n", BACK_BLACK, RESET_ALL);
printf("%sRed background%s\n", BACK_RED, RESET_ALL);
printf("%sGreen background%s\n", BACK_GREEN, RESET_ALL);
printf("%sYellow background%s\n", BACK_YELLOW, RESET_ALL);
printf("%sBlue background%s\n", BACK_BLUE, RESET_ALL);
printf("%sMagenta background%s\n", BACK_MAGENTA, RESET_ALL);
printf("%sCyan background%s\n", BACK_CYAN, RESET_ALL);
printf("%sWhite background%s\n\n", BACK_WHITE, RESET_ALL);
printf("%sBold text%s\n", STYLE_BOLD, RESET_ALL);
printf("%sDim text%s\n", STYLE_DIM, RESET_ALL);
printf("%sItalic text%s\n", STYLE_ITALIC, RESET_ALL);
printf("%sUnderlined text%s\n", STYLE_UNDERLINE, RESET_ALL);
printf("%sBlinking text%s\n", STYLE_BLINK, RESET_ALL);
printf("%sFramed text%s\n", STYLE_FRAMED, RESET_ALL);
printf("%sEncircled text%s\n", STYLE_ENCIRCLED, RESET_ALL);
printf("%s%s%s%s%sYou can also get crazy with it%s%s%s!!%s\n", BACK_GREEN, FORE_RED, STYLE_UNDERLINE, STYLE_BOLD, STYLE_BLINK, RESET_ALL, BACK_BLUE, FORE_YELLOW, RESET_ALL);
return 0;
}