def update_window_size(self):
        """
        Update the current window object with its current
        height and width and clear the screen if they've changed.
        """
        height, width = self.window.getmaxyx()
        if self.height != height or self.width != width:
            self.height, self.width = height, width
            self.window.clear()