I've a project in C++ (probably developed on linux) that I wish to run on Windows via code::blocks.
But an unexpected phenomenon happens when I try to run it. Normally, there is a grid made of # and + supposed to adopt different colors, but the only output that I have is:
###################################################################
# [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m [1;90m+[1;0m #
# [1;91m3[1;0m [1;96m2[1;0m [1;91m3[1;0m [1;96m2[1;0m [1;91m3[1;0m #
...
somewhere in the code I can see (among others):
static const char* grey = "\033[1;90m" ;
static const char* reset = "\033[1;0m" ;
and somewhere else using this declaration in some conditions:
out << grey << "+" << reset ;
I think that you guessed the question which is: How to display the grid correctly, in color? The problem comes from the OS, from codeblocks, from the compiler?
Any way which could bring me to a solution is welcome.