(self, attr, red, green, blue)
Set palette entry for attribute (0--16).
Set palette entry for attribute (0--16).
Set palette entry for attribute ( 0 -- 16 ) .
def set_palette_entry(self, attr, red, green, blue):
        """Set palette entry for attribute (0--16)."""
        csbie = GetConsoleScreenBufferInfoEx(self._hstdout)
        csbie.ColorTable[attr] = (
            0x00010000 * blue + 0x00000100 * green + 0x00000001 * red
        )
        _SetConsoleScreenBufferInfoEx(self._hstdout, byref(csbie))
def set_palette_entry ( self , attr , red , green , blue ) : csbie = GetConsoleScreenBufferInfoEx ( self . _hstdout ) csbie . ColorTable [ attr ] = ( 0x00010000 * blue + 0x00000100 * green + 0x00000001 * red ) _SetConsoleScreenBufferInfoEx ( self . _hstdout , byref ( csbie ) )