~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-04 10:59:49 UTC
  • mfrom: (4862.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091204105949-cp822ctg4bp7vgd4
(vila) BZR_COLUMNS can override terminal_width()

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
        return (defaultx, defaulty)
183
183
 
184
184
    # To avoid problem with redirecting output via pipe
185
 
    # need to use stderr instead of stdout
 
185
    # we need to use stderr instead of stdout
186
186
    h = ctypes.windll.kernel32.GetStdHandle(WIN32_STDERR_HANDLE)
187
187
    csbi = ctypes.create_string_buffer(22)
188
188
    res = ctypes.windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)