SetConsoleTextAttribute function kernel32
Sets the attributes of characters written to the console screen buffer by the WriteFile or WriteConsole function, or echoed by the ReadFile or ReadConsole function. This function affects text written after the function call.
BOOL WINAPI SetConsoleTextAttribute(
_In_ HANDLE hConsoleOutput,
_In_ WORD wAttributes
);
Implementation
int SetConsoleTextAttribute(int hConsoleOutput, int wAttributes) =>
_SetConsoleTextAttribute(hConsoleOutput, wAttributes);