- Single header only
- Print colors and modifiers
- Print basic stl
Containers
(everything that has .begin() and .end()) - Print
Tuples
andPairs
- Print basic chrono types
- Print booleans (
true
andfalse
insteaod of1
and0
) - Customizable
- C++17
Should work on all terminals that support ansi escape codes.
(Requires ENABLE_VIRTUAL_TERMINAL_PROCESSING on Windows)
Drop fancy.hpp
into your project.
// Printing STL containers
std::vector<int> someInts = {1, 2, 3};
fancy << "SomeInts: " << someInts << std::endl;
// Printing custom colors
fancy << Fancy::ForegroundColor(255,100,120) << "Test" << std::endl;
fancy << Fancy::BackgroundColor(255,100,120) << "Test" << std::endl;
// Printing modifiers
fancy << Effect<EffectType::Underline> << Effect<EffectType::Blinking> << "Test" << std::endl;
// Simple highlight
fancy >> "Something that gets highlighted" << std::endl;
// More examples can be found in "src/example.cpp"
Create your Fancy::Stream instance with a custom Fancy::Config.
Fancy::Config config;
// Modify values of config
Fancy::Stream fancy(config);