def size(self, new_size: Tuple[int, int]) -> None:
        """Set a new size for the terminal.

        Args:
            new_size (Tuple[int, int]): New width and height.
        """
        width, height = new_size
        self._width = width
        self._height = height
Set a new size for the terminal.

        Args:
            new_size (Tuple[int, int]): New width and height.
        
rich/console.py