pub fn write_cleanup_sequence(
features: &BackendFeatures,
alt_screen: bool,
writer: &mut impl Write,
) -> Result<()>Expand description
Write the full cleanup sequence for the given feature state to writer.
This is useful for verifying cleanup in PTY tests without needing a real terminal session.