def METHOD_NAME(cls, enable: bool) -> "Control":
    """Enable or disable alt screen."""
    if enable:
        return cls(ControlType.ENABLE_ALT_SCREEN, ControlType.HOME)
    else:
        return cls(ControlType.DISABLE_ALT_SCREEN)