~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

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)