parameters: (self, state, total, col1, col2)
return_statement: return msg
docstring: Compute the progress bar used by ``waf -p``
docstring_summary: Compute the progress bar used by ``waf -p``
docstring_tokens: Compute the progress bar used by waf - p
function: def progress_line(self, state, total, col1, col2):
  		"""
  		Compute the progress bar used by ``waf -p``
  		"""
  		n = len(str(total))
  
  		Utils.rot_idx += 1
  		ind = Utils.rot_chr[Utils.rot_idx % 4]
  
  		pc = (100.*state)/total
  		eta = str(self.timer)
  		fs = "[%%%dd/%%%dd][%%s%%2d%%%%%%s][%s][" % (n, n, ind)
  		left = fs % (state, total, col1, pc, col2)
  		right = '][%s%s%s]' % (col1, eta, col2)
  
  		cols = Logs.get_term_cols() - len(left) - len(right) + 2*len(col1) + 2*len(col2)
  		if cols < 7: cols = 7
  
  		ratio = ((cols*state)//total) - 1
  
  		bar = ('='*ratio+'>').ljust(cols)
  		msg = Utils.indicator % (left, bar, right)
  
  		return msg
function_tokens: def progress_line ( self , state , total , col1 , col2 ) : n = len ( str ( total ) ) Utils . rot_idx += 1 ind = Utils . rot_chr [ Utils . rot_idx % 4 ] pc = ( 100. * state ) / total eta = str ( self . timer ) fs = "[%%%dd/%%%dd][%%s%%2d%%%%%%s][%s][" % ( n , n , ind ) left = fs % ( state , total , col1 , pc , col2 ) right = '][%s%s%s]' % ( col1 , eta , col2 ) cols = Logs . get_term_cols ( ) - len ( left ) - len ( right ) + 2 * len ( col1 ) + 2 * len ( col2 ) if cols < 7 : cols = 7 ratio = ( ( cols * state ) // total ) - 1 bar = ( '=' * ratio + '>' ) . ljust ( cols ) msg = Utils . indicator % ( left , bar , right ) return msg