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. By default this omits DEC ?2026l because no synchronized-output ownership is implied by this utility API.