parameters: (self)
return_statement: return fs % (cur(), total, kw, col1, s, col2)
docstring: Returns an execution status for the console, the progress bar, or the IDE output.
  
  		:rtype: string
docstring_summary: Returns an execution status for the console, the progress bar, or the IDE output.
docstring_tokens: Returns an execution status for the console the progress bar or the IDE output .
function: def display(self):
  		"""
  		Returns an execution status for the console, the progress bar, or the IDE output.
  
  		:rtype: string
  		"""
  		col1 = Logs.colors(self.color)
  		col2 = Logs.colors.NORMAL
  		master = self.generator.bld.producer
  
  		def cur():
  			# the current task position, computed as late as possible
  			return master.processed - master.ready.qsize()
  
  		if self.generator.bld.progress_bar == 1:
  			return self.generator.bld.progress_line(cur(), master.total, col1, col2)
  
  		if self.generator.bld.progress_bar == 2:
  			ela = str(self.generator.bld.timer)
  			try:
  				ins  = ','.join([n.name for n in self.inputs])
  			except AttributeError:
  				ins = ''
  			try:
  				outs = ','.join([n.name for n in self.outputs])
  			except AttributeError:
  				outs = ''
  			return '|Total %s|Current %s|Inputs %s|Outputs %s|Time %s|\n' % (master.total, cur(), ins, outs, ela)
  
  		s = str(self)
  		if not s:
  			return None
  
  		total = master.total
  		n = len(str(total))
  		fs = '[%%%dd/%%%dd] %%s%%s%%s%%s\n' % (n, n)
  		kw = self.keyword()
  		if kw:
  			kw += ' '
  		return fs % (cur(), total, kw, col1, s, col2)
function_tokens: def display ( self ) : col1 = Logs . colors ( self . color ) col2 = Logs . colors . NORMAL master = self . generator . bld . producer def cur ( ) : # the current task position, computed as late as possible return master . processed - master . ready . qsize ( ) if self . generator . bld . progress_bar == 1 : return self . generator . bld . progress_line ( cur ( ) , master . total , col1 , col2 ) if self . generator . bld . progress_bar == 2 : ela = str ( self . generator . bld . timer ) try : ins = ',' . join ( [ n . name for n in self . inputs ] ) except AttributeError : ins = '' try : outs = ',' . join ( [ n . name for n in self . outputs ] ) except AttributeError : outs = '' return '|Total %s|Current %s|Inputs %s|Outputs %s|Time %s|\n' % ( master . total , cur ( ) , ins , outs , ela ) s = str ( self ) if not s : return None total = master . total n = len ( str ( total ) ) fs = '[%%%dd/%%%dd] %%s%%s%%s%%s\n' % ( n , n ) kw = self . keyword ( ) if kw : kw += ' ' return fs % ( cur ( ) , total , kw , col1 , s , col2 )