pub fn capture_both<F: FnOnce() + Clone>(f: F) -> (String, String)
Capture both plain and rich output for comparison.