def terminal_size_changed(
        self, width: int, height: int, pixwidth: int, pixheight: int
    ) -> None:
        """
        When the terminal size changes, report back to CLI.
        """
        self.repl.app._on_resize()

        When the terminal size changes, report back to CLI.
        
src/ptpython/contrib/asyncssh_repl.py