Files
mcolor/main.cpp

23 lines
746 B
C++

#include <iostream>
#include <mcolor.h>
int main()
{
#ifdef WIN32
mcolor::windowsSaneify();
#endif
std::cout << "Hello, World!" << std::endl;
//Color c;
//c.ansi = mcolor::ansiColorCodes::FG_RED;
//Color.rgb RED = mcolor::rgbColors::RED;
//std::cout << c.ansi.code << "Hello, Colors!" << mcolor::ansiControlCodes::RESET.code << std::endl;
//std::cout << "ass" << std::endl;
std::cout << mcolor::toEscapeCode(mcolor::ansiColors::Colors::FG_RED) << "Hello, Colors!" << mcolor::toEscapeCode(mcolor::ansiColors::Colors::RESET) << std::endl;
std::cout << mcolor::toEscapeCode(mcolor::rgbColors::CYAN) << "Hello, Colors!" << mcolor::toEscapeCode(mcolor::ansiColors::Colors::RESET) << std::endl;
return 0;
}