parameters: (self)
return_statement: return struct.unpack('HHHH', x)[0:2]
docstring: This returns the terminal window size of the child tty. The return
          value is a tuple of (rows, cols).
docstring_summary: This returns the terminal window size of the child tty. The return
          value is a tuple of (rows, cols).
docstring_tokens: This returns the terminal window size of the child tty . The return value is a tuple of ( rows cols ) .
function: 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', 1074295912)
          s = struct.pack('HHHH', 0, 0, 0, 0)
          x = fcntl.ioctl(self.fileno(), TIOCGWINSZ, s)
          return struct.unpack('HHHH', x)[0:2]
function_tokens: def getwinsize ( self ) : TIOCGWINSZ = getattr ( termios , 'TIOCGWINSZ' , 1074295912 ) s = struct . pack ( 'HHHH' , 0 , 0 , 0 , 0 ) x = fcntl . ioctl ( self . fileno ( ) , TIOCGWINSZ , s ) return struct . unpack ( 'HHHH' , x ) [ 0 : 2 ]