This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SetCursor(int x, int y) | |
{ | |
COORD cd = {(short)x, (short)y}; | |
HANDLE g_hOutput = GetStdHandle(STD_OUTPUT_HANDLE); | |
SetConsoleCursorPosition(g_hOutput, cd); | |
} | |
void SetColor(unsigned short ForeColor=0xFFFF,unsigned short BackGroundColor=0) | |
{ | |
HANDLE m_outputHandle = GetStdHandle(STD_OUTPUT_HANDLE); |