'Updates the progress bar to a new value.'

def update(self, value):

    super(ProgressBar, self).update(value)
    term = ('\r' if (value != self.maxval) else '\n')
    self.fd.write((self._format_line() + term))
