I wrote a program in C using Code Blocks for Linux. As you can see below, it has a lot of "graphic parts" that are not directly compatible with Windows (such as unicode characters and colored texts). I was wondering if there's a quick way or a workaround to make this program display correctly on a Windows machine without having to rewrite the code.
#define INRED "\033[1;31m"
#define INGREEN "\033[1;32m"
#define INYELLOW "\033[1;33m"
#define INBLUE "\033[1;34m"
#define INWHITE "\033[1;37m"
#define INRESETCOLOR "\033[0m"
#define ERRORCOLOR "\033[1;31m\a"
#define WINCOLOR "\033[5;1;39m"
#define BLOCK "\u2B24"
#define BLACKMATCH "\u25A0 "
#define WHITEMATCH "\u25A1 "
#define RBLOCK INRED BLOCK INRESETCOLOR " "
#define GBLOCK INGREEN BLOCK INRESETCOLOR " "
#define BBLOCK INBLUE BLOCK INRESETCOLOR " "
#define YBLOCK INYELLOW BLOCK INRESETCOLOR " "
#define PROMPT printf("\n> ");
#define CLEARSCR printf("\033[H\033[J");
EDIT: Here's there's a solution to the problem with the ANSI escape sequences How to make win32 console recognize ANSI/VT100 escape sequences? but not to the wrong display of Unicode characters.