~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Alexander Belchenko
  • Date: 2007-01-30 15:18:52 UTC
  • mto: This revision was merged to the branch mainline in revision 2259.
  • Revision ID: bialix@ukr.net-20070130151852-pahtk2exx9f1jff9
osutils.py: terminal_width() now use win32utils.get_console_size()

Show diffs side-by-side

added added

removed removed

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