~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-06 22:11:34 UTC
  • mfrom: (5370.1.3 2.3b1-dev)
  • Revision ID: pqm@pqm.ubuntu.com-20100806221134-i0gwvzn5qyyxftno
(jam) Merge 2.2.0 into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
        # we need one extra space for terminals that wrap on last char
305
305
        w = osutils.terminal_width() 
306
306
        if w is None:
307
 
            return w
 
307
            return None
308
308
        else:
309
309
            return w - 1
310
310
 
311
311
    def _show_line(self, s):
 
312
        # sys.stderr.write("progress %r\n" % s)
 
313
        width = self._avail_width()
 
314
        if width is not None:
 
315
            s = '%-*.*s' % (width, width, s)
312
316
        self._term_file.write('\r' + s + '\r')
313
317
 
314
318
    def clear(self):