/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Aaron Bentley
  • Date: 2006-03-18 21:02:22 UTC
  • mto: (1558.7.5 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 1629.
  • Revision ID: aaron.bentley@utoronto.ca-20060318210222-8a49d67ada6f8638
Fix overall progress bar's interaction with 'note' and 'warning'

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        if self._progress_bar_stack is None:
63
63
            self._progress_bar_stack = bzrlib.progress.ProgressBarStack()
64
64
        return self._progress_bar_stack.get_nested()
 
65
 
 
66
    def clear_term(self):
 
67
        """Prepare the terminal for output.
 
68
 
 
69
        This will, clear any progress bars, and leave the cursor at the
 
70
        leftmost position."""
 
71
        if self._progress_bar_stack is None:
 
72
            return
 
73
        overall_pb = self._progress_bar_stack.bottom()
 
74
        if overall_pb is not None:
 
75
            overall_pb.clear()