#NEWLINE# def _overwrite( self , message ) : #NEWLINE# #INDENT# '\n        Overwrites a previous message to the output.\n\n        :param message: The message\n        :type message: str\n        ' #NEWLINE# if ( self . _last_message_length is not None ) : #NEWLINE# #INDENT# if ( self . _last_message_length > Helper . len_without_decoration ( self . _output . get_formatter ( ) , message ) ) : #NEWLINE# #INDENT# message = message . ljust ( self . _last_message_length , ' ' ) #NEWLINE# #UNINDENT# #UNINDENT# if self . _output . is_decorated ( ) : #NEWLINE# #INDENT# self . _output . write ( '\r' ) #NEWLINE# self . _output . write ( message ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _output . writeln ( message ) #NEWLINE# #UNINDENT# self . _last_message_length = 0 #NEWLINE# length = Helper . len_without_decoration ( self . _output . get_formatter ( ) , message ) #NEWLINE# if ( length > self . _last_message_length ) : #NEWLINE# #INDENT# self . _last_message_length = length