def show_cursor(self, show: bool = True) -> bool:
        """Show or hide the cursor.

        Args:
            show (bool, optional): Set visibility of the cursor.
        """
        if self.is_terminal:
            self.control(Control.show_cursor(show))
            return True
        return False
Show or hide the cursor.

        Args:
            show (bool, optional): Set visibility of the cursor.
        
rich/console.py