#NEWLINE# def _get_colors( self ) : #NEWLINE# #INDENT# csbi = _CONSOLE_SCREEN_BUFFER_INFO ( ) #NEWLINE# ok = windll . kernel32 . GetConsoleScreenBufferInfo ( self . _handle , byref ( csbi ) ) #NEWLINE# if ( not ok ) : #NEWLINE# #INDENT# return self . _FOREGROUND_GREY #NEWLINE# #UNINDENT# return self . wAttributes