def get_text_attr():
        csbi = ConsoleScreenBufferInfo()
        GETCONSOLESCREENBUFFERINFO(STDOUT_HANDLE, byref(csbi))
        return csbi.wAttributes
Returns the character attributes (colors) of the console screen buffer.
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/utils/coloured_writer.py/get_text_attr