Added test for list search.
[C-Data-Structures.git] / lib_term_color.c
blob812aa522b7f6431125b5f0e18a9f4a89f54b1639
1 #include <stdio.h>
3 #define RESET 0
4 #define BRIGHT 1
5 #define DIM 2
6 #define UNDERLINE 3
7 #define BLINK 4
8 #define REVERSE 7
9 #define HIDDENT 8
11 #define BLACK 0
12 #define RED 1
13 #define GREEN 2
14 #define YELLOW 3
15 #define BLUE 4
16 #define MAGENTA 5
17 #define CYAN 6
18 #define WHITE 7
20 void clear_screen()
22 system("clear");
25 void color(int attr, int fg, int bg)
27 printf("%c[%d;%d;%dm", 0x1B, attr, fg+30, bg+40);