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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import sys
25
25
import time
26
26
 
27
 
from bzrlib.lazy_import import lazy_import
 
27
from breezy.lazy_import import lazy_import
28
28
lazy_import(globals(), """
29
29
import codecs
30
30
import getpass
31
31
import warnings
32
32
 
33
 
from bzrlib import (
 
33
from breezy import (
34
34
    config,
35
35
    debug,
36
36
    progress,
40
40
 
41
41
""")
42
42
 
43
 
from bzrlib.ui import (
 
43
from breezy.ui import (
44
44
    UIFactory,
45
45
    NullProgressView,
46
46
    )
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