diff --git a/tester/Makefile b/tester/Makefile index f8f3ad8..db9f49a 100644 --- a/tester/Makefile +++ b/tester/Makefile @@ -22,7 +22,7 @@ else CXXFLAGS += -D NDEBUG -O3 endif -LDLIBS := -lm -lpthread -lsclogging +LDLIBS := -lm -lpthread -lsclogging -lscterm all: $(BIN) diff --git a/tester/main.cpp b/tester/main.cpp index 58ccbfb..8e23031 100644 --- a/tester/main.cpp +++ b/tester/main.cpp @@ -67,6 +67,24 @@ int main(int argc, const char * argv[]) { SCCritical(logger, "meltdown imminent"); SCInfo(logger, ""); 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) { std::cerr << "tester: " << ex.what() << '\n'; return EXIT_FAILURE;