consolidate as much as possible

This commit is contained in:
2024-06-26 21:03:03 -04:00
parent 9f0ccef302
commit f0ccdf00c0
6 changed files with 479 additions and 590 deletions

View File

@@ -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);
}
}