Lines 1-13
Link Here
|
1 |
--- pexpect/__init__.py.orig 2013-11-11 17:58:03.000000000 +0000 |
1 |
--- pexpect/__init__.py.orig 2014-04-15 03:31:01.000000000 +0200 |
2 |
+++ pexpect/__init__.py 2013-12-26 08:28:18.423632870 +0000 |
2 |
+++ pexpect/__init__.py 2014-05-12 14:41:21.690335992 +0200 |
3 |
@@ -1558,10 +1558,7 @@ |
3 |
@@ -1562,7 +1562,7 @@ |
4 |
# TIOCSWINSZ and they don't have a truncate problem. |
4 |
# termios.TIOCSWINSZ to be truncated. There was a hack here to work |
5 |
# Newer versions of Linux have totally different values for TIOCSWINSZ. |
5 |
# around this, but it caused problems with newer platforms so has been |
6 |
# Note that this fix is a hack. |
6 |
# removed. For details see https://github.com/pexpect/pexpect/issues/39 |
7 |
- TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', -2146929561) |
7 |
- TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', -2146929561) |
8 |
- if TIOCSWINSZ == 2148037735: |
|
|
9 |
- # Same bits, but with sign. |
10 |
- TIOCSWINSZ = -2146929561 |
11 |
+ TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735) |
8 |
+ TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735) |
12 |
# Note, assume ws_xpixel and ws_ypixel are zero. |
9 |
# Note, assume ws_xpixel and ws_ypixel are zero. |
13 |
s = struct.pack('HHHH', rows, cols, 0, 0) |
10 |
s = struct.pack('HHHH', rows, cols, 0, 0) |