~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-01-24 17:06:02 UTC
  • mfrom: (2193.4.3 miss.last-file-location)
  • Revision ID: pqm@pqm.ubuntu.com-20070124170602-5f008e922b3dd800
(bialix) 'bzr missing' show remembered location unescaped,and show
 file URL as filepath not a URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
from bzrlib import (
51
51
    errors,
52
 
    win32utils,
53
52
    )
54
53
""")
55
54
 
891
890
def terminal_width():
892
891
    """Return estimated terminal width."""
893
892
    if sys.platform == 'win32':
894
 
        return win32utils.get_console_size()[0]
 
893
        import bzrlib.win32console
 
894
        return bzrlib.win32console.get_console_size()[0]
895
895
    width = 0
896
896
    try:
897
897
        import struct, fcntl, termios