#NEWLINE# def _clear( self ) : #NEWLINE# #INDENT# '\n            Clear the terminal.\n            ' #NEWLINE# info = self . _stdout . GetConsoleScreenBufferInfo ( ) [ 'Window' ] #NEWLINE# width = ( ( info . Right - info . Left ) + 1 ) #NEWLINE# height = ( ( info . Bottom - info . Top ) + 1 ) #NEWLINE# box_size = ( width * height ) #NEWLINE# self . _stdout . FillConsoleOutputAttribute ( 0 , box_size , win32console . PyCOORDType ( 0 , 0 ) ) #NEWLINE# self . _stdout . FillConsoleOutputCharacter ( ' ' , box_size , win32console . PyCOORDType ( 0 , 0 ) ) #NEWLINE# self . _stdout . SetConsoleCursorPosition ( win32console . PyCOORDType ( 0 , 0 ) )