update README with usage
This commit is contained in:
parent
601cbce5e7
commit
3af29652c1
11
README
11
README
@ -2,6 +2,17 @@
|
||||
|
||||
A library to style programs with command-line interaction. Includes colors and symbols.
|
||||
|
||||
+ Usage
|
||||
|
||||
#include <stdio.h>
|
||||
#include "libcolor.h"
|
||||
|
||||
int main() {
|
||||
printf(COL_RED "red\n" COL_RESET);
|
||||
printf(COL_BLUE "blue\n" COL_RESET);
|
||||
printf(TXT_BOLd "bold\n" TXT_RESET);
|
||||
}
|
||||
|
||||
+ Installation
|
||||
|
||||
Run 'make install' to install the header file. It will install info $(PREFIX)/include.
|
||||
|
Loading…
Reference in New Issue
Block a user