pen, fgcolor, bgcolor = GetConsoleColor([cursor])
cursor
is set to True, the color at the current cursor position will be returned. Otherwise the color
of the current window will be returned.
GetConsoleColor() will return three values: The currently active pen and the current foreground
and background colors.
You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.
True to get the color at the cursor position, False to get the
color of the current window (defaults to False)