environment/lib/python2.7/site-packages/IPython/external/pexpect/_pexpect.py
def getwinsize(self):

        """This returns the terminal window size of the child tty. The return
        value is a tuple of (rows, cols). """

        TIOCGWINSZ = getattr(termios, 'TIOCGWINSZ', 1074295912L)
        s = struct.pack('HHHH', 0, 0, 0, 0)
        x = fcntl.ioctl(self.fileno(), TIOCGWINSZ, s)
        return struct.unpack('HHHH', x)[0:2]
def getwinsize(self):

        """This returns the terminal window size of the child tty. The return
        value is a tuple of (rows, cols). """

        TIOCGWINSZ = getattr(termios, 'TIOCGWINSZ', 1074295912L)
        s = struct.pack('HHHH', 0, 0, 0, 0)
        x = fcntl.ioctl(self.fileno(), TIOCGWINSZ, s)
        return struct.unpack('HHHH', x)[0:2]
def getwinsize ( self ) : TIOCGWINSZ = getattr ( termios , 'TIOCGWINSZ' , 1074295912L ) s = struct . pack ( 'HHHH' , 0 , 0 , 0 , 0 ) x = fcntl . ioctl ( self . fileno ( ) , TIOCGWINSZ , s ) return struct . unpack ( 'HHHH' , x ) [ 0 : 2 ]
This returns the terminal window size of the child tty. The return
        value is a tuple of (rows, cols).
This returns the terminal window size of the child tty . The return value is a tuple of ( rows cols ) .