2023-03-30 10:05:31 -04:00
|
|
|
+ libcolor
|
|
|
|
|
2023-05-11 12:10:13 -04:00
|
|
|
A library to style programs with command-line interaction.
|
2023-03-30 10:05:31 -04:00
|
|
|
|
2023-03-30 14:14:41 -04:00
|
|
|
+ Usage
|
|
|
|
|
2023-05-11 12:10:13 -04:00
|
|
|
#include <color.h>
|
2023-03-30 14:14:41 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2023-05-11 12:10:13 -04:00
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
2023-03-30 14:14:41 -04:00
|
|
|
printf(COL_RED "red\n" COL_RESET);
|
|
|
|
printf(COL_BLUE "blue\n" COL_RESET);
|
2023-05-11 12:10:13 -04:00
|
|
|
printf(COL_GREEB "green\n" COL_RESET);
|
2023-03-30 14:14:41 -04:00
|
|
|
}
|
|
|
|
|
2023-03-30 10:05:31 -04:00
|
|
|
+ Installation
|
|
|
|
|
|
|
|
Run 'make install' to install the header file. It will install info $(PREFIX)/include.
|