Added tests for color output
This commit is contained in:
parent
9925f44eea
commit
a9c4b75e46
@ -22,7 +22,7 @@ else
|
|||||||
CXXFLAGS += -D NDEBUG -O3
|
CXXFLAGS += -D NDEBUG -O3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS := -lm -lpthread -lsclogging
|
LDLIBS := -lm -lpthread -lsclogging -lscterm
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
|
@ -67,6 +67,24 @@ int main(int argc, const char * argv[]) {
|
|||||||
SCCritical(logger, "meltdown imminent");
|
SCCritical(logger, "meltdown imminent");
|
||||||
SCInfo(logger, "");
|
SCInfo(logger, "");
|
||||||
sclog("%s", "oud spul werkt ook");
|
sclog("%s", "oud spul werkt ook");
|
||||||
|
SCInfoC(logger, sc::io::black, "black");
|
||||||
|
SCInfoC(logger, sc::io::red, "red");
|
||||||
|
SCInfoC(logger, sc::io::green, "green");
|
||||||
|
SCInfoC(logger, sc::io::yellow, "yellow");
|
||||||
|
SCInfoC(logger, sc::io::blue, "blue");
|
||||||
|
SCInfoC(logger, sc::io::magenta, "magenta");
|
||||||
|
SCInfoC(logger, sc::io::cyan, "cyan");
|
||||||
|
SCInfoC(logger, sc::io::white, "white");
|
||||||
|
sc::io::trgb orange {1.0, 0.5, 0.0};
|
||||||
|
SCInfoC(logger, orange, "orange");
|
||||||
|
sc::io::trgb c1 {0.0, 0.7, 0.7};
|
||||||
|
SCInfoC(logger, c1, "c1");
|
||||||
|
sc::io::trgb c2 {0.7, 0.3, 0.7};
|
||||||
|
SCInfoC(logger, c2, "c2");
|
||||||
|
sc::io::trgb c3 {0.4, 0.4, 0.2};
|
||||||
|
SCInfoC(logger, c3, "c3");
|
||||||
|
sc::io::trgb c4 {0.2, 0.6, 0.2};
|
||||||
|
SCInfoC(logger, c4, "c4");
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
std::cerr << "tester: " << ex.what() << '\n';
|
std::cerr << "tester: " << ex.what() << '\n';
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user