/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 brzlib/ui/text.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    def _setup_mode(self):
60
60
        """Setup input mode (line-based, char-based) and echo-back.
61
61
 
62
 
        Line-based input is used if the BZR_TEXTUI_INPUT environment
 
62
        Line-based input is used if the BRZ_TEXTUI_INPUT environment
63
63
        variable is set to 'line-based', or if there is no controlling
64
64
        terminal.
65
65
        """
66
 
        if os.environ.get('BZR_TEXTUI_INPUT') != 'line-based' and \
 
66
        if os.environ.get('BRZ_TEXTUI_INPUT') != 'line-based' and \
67
67
           self.ui.stdin == sys.stdin and self.ui.stdin.isatty():
68
68
            self.line_based = False
69
69
            self.echo_back = True
158
158
 
159
159
opt_progress_bar = config.Option(
160
160
    'progress_bar', help='Progress bar type.',
161
 
    default_from_env=['BZR_PROGRESS_BAR'], default=None,
 
161
    default_from_env=['BRZ_PROGRESS_BAR'], default=None,
162
162
    invalid='error')
163
163
 
164
164