A simple header-only wrapper for ANSI escape codes so you don't have to account for it in another operating system.
Include libeasyansi.hpp
Basic Usage:
int main(){
std::cout << easyansi::invert << easyansi::setColour(easyansi::colour::green) << "this is the power of libeasyansi!" << easyansi::resetGraphics("7") << easyansi::italics <<" + with ease of access" << easyansi::reset << std::endl;
return 0;
}If you are compiling for Windows, the library will automatically set ansi up.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.