consolidate as much as possible
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef WORD
|
||||
#define WORD short
|
||||
#endif
|
||||
|
||||
namespace jlog::nt_color_codes
|
||||
{
|
||||
const WORD FG_BLACK = 0x0000;
|
||||
@@ -48,8 +52,4 @@ namespace jlog::nt_color_codes
|
||||
const WORD BG_BRIGHT_WHITE = BG_RED | BG_GREEN | BG_BLUE | 0x0080;
|
||||
|
||||
const WORD BG_DEFAULT = BG_WHITE;
|
||||
|
||||
inline void SetConsoleTextColor(WORD color) {
|
||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user