diff options
Diffstat (limited to 'hicn-light/src/command_line/controller/hicnLightControl_main.c')
-rw-r--r-- | hicn-light/src/command_line/controller/hicnLightControl_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/command_line/controller/hicnLightControl_main.c b/hicn-light/src/command_line/controller/hicnLightControl_main.c index 3d6f0bdbf..b43789fe5 100644 --- a/hicn-light/src/command_line/controller/hicnLightControl_main.c +++ b/hicn-light/src/command_line/controller/hicnLightControl_main.c @@ -103,10 +103,10 @@ static void _printWhite(const char *output) { HANDLE hConsole = NULL; WORD currentConsoleAttr; CONSOLE_SCREEN_BUFFER_INFO csbi; - SetConsoleTextAttribute(hConsole, 7); + hConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (GetConsoleScreenBufferInfo(hConsole, &csbi)) currentConsoleAttr = csbi.wAttributes; - hConsole = GetStdHandle(STD_OUTPUT_HANDLE); + SetConsoleTextAttribute(hConsole, 7); printf("%s", output); SetConsoleTextAttribute(hConsole, currentConsoleAttr); #endif |