pub fn write_to_output_inner( stdout: &mut Stdout, app: &mut App, text: &str, record: bool, ) -> Result<()>