~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-03 16:20:12 UTC
  • mfrom: (2245.4.11 win98.support)
  • Revision ID: pqm@pqm.ubuntu.com-20070203162012-b09dab5423fa3c50
(bialix) Support for Windows 98

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
from bzrlib import (
50
50
    errors,
 
51
    win32utils,
51
52
    )
52
53
""")
53
54
 
897
898
def terminal_width():
898
899
    """Return estimated terminal width."""
899
900
    if sys.platform == 'win32':
900
 
        import bzrlib.win32console
901
 
        return bzrlib.win32console.get_console_size()[0]
 
901
        return win32utils.get_console_size()[0]
902
902
    width = 0
903
903
    try:
904
904
        import struct, fcntl, termios