I've a branch with a fix for this, but the code has been moved more
than once since it landed so repeated conflicts have got in the way of
getting it landed.
The change started as the below, but any similar alteration to the
conditional should work:
=== modified file 'bzrlib/osutils.py'
--- old/bzrlib/osutils.py 2009-12-17 22:16:59 +0000
+++ new/bzrlib/osutils.py 2009-12-17 22:17:42 +0000
@@ -1477,11 +1477,7 @@
if width is not None: os.environ['COLUMNS'] = str(width)
-if sys.platform == 'win32':
- # Martin (gz) mentioned WINDOW_BUFFER_SIZE_RECORD from ReadConsoleInput but
- # I've no idea how to plug that in the current design -- vila 20091216
- pass
-else:
+if os.name == "posix" and getattr(signal, "SIGWINCH", None) is not None:
signal.signal(signal.SIGWINCH, _terminal_size_changed)
I've a branch with a fix for this, but the code has been moved more
than once since it landed so repeated conflicts have got in the way of
getting it landed.
The change started as the below, but any similar alteration to the
conditional should work:
=== modified file 'bzrlib/osutils.py' osutils. py 2009-12-17 22:16:59 +0000 osutils. py 2009-12-17 22:17:42 +0000
os.environ[ 'COLUMNS' ] = str(width)
--- old/bzrlib/
+++ new/bzrlib/
@@ -1477,11 +1477,7 @@
if width is not None:
-if sys.platform == 'win32': BUFFER_ SIZE_RECORD from ReadConsoleInput but signal( signal. SIGWINCH, _terminal_ size_changed)
- # Martin (gz) mentioned WINDOW_
- # I've no idea how to plug that in the current design -- vila 20091216
- pass
-else:
+if os.name == "posix" and getattr(signal, "SIGWINCH", None) is not None:
signal.