Added clause for no color

This commit is contained in:
R. Eric Wheeler 2015-07-06 15:29:41 -07:00
parent 57517f914a
commit 181d162c2c
4 changed files with 28 additions and 0 deletions

BIN
examples/example Executable file

Binary file not shown.

14
examples/example.cpp Normal file
View File

@ -0,0 +1,14 @@
#include <cstdio>
#include <iostream>
#include <pipecolors.h>
using namespace pipecolors;
int main(void) {
int num = 5;
const char* str = "My number is";
pcprintf("|01%s |09%d\n", str, num);
return 0;
}

BIN
examples/example2 Executable file

Binary file not shown.

14
examples/example2.cpp Normal file
View File

@ -0,0 +1,14 @@
#include <cstdio>
#include <iostream>
#include <pipecolors.h>
using namespace pipecolors;
int main(void) {
int num = 5;
const char* str = "My number is";
pcprintf("|40%s %d|39\n", str, num);
return 0;
}