(self)
Get terminal size.
Get terminal size.
Get terminal size .
def get_size(self):
        """Get terminal size."""
        try:
            return struct.unpack(
                'HHHH', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, b'\0'*8)
            )[:2]
        except Exception:
            return 25, 80
def get_size ( self ) : try : return struct . unpack ( 'HHHH' , fcntl . ioctl ( sys . stdout . fileno ( ) , termios . TIOCGWINSZ , b'\0' * 8 ) ) [ : 2 ] except Exception : return 25 , 80