Applications can manipulate text based consoles or terminals, and change their colors, set cursor position,...
The supported approaches are:
Alright, i finally found a portable and easy to use library: rlutil.h
Usage:
#include #include "rlutil.h" int main() { for (int i = 0; i < 16; i++) { rlutil::setColor(i); std::cout << i << " "; } std::cout << std::endl; return 0; }
but, i will be glad for other suggestions.