pub fn render_frame( out: &mut dyn Write, screen: &Screen, rows: u16, cols: u16, clear_display: bool, ) -> Result<()>