async fn resize(
        &mut self,
        new_size: Vec2,
        stdout: &mut LockedStdout<'terminal>,
    ) -> io::Result<()> {
        let buf = format!(
            "{}{}{}",
            crossterm::style::SetForegroundColor(
                crossterm::style::Color::White
            ),
            crossterm::style::SetBackgroundColor(
                crossterm::style::Color::Black
            ),
            crossterm::terminal::Clear(crossterm::terminal::ClearType::All)
        );
        stdout.write_and_flush(buf.as_bytes()).await?;
        self.buffer.resize(new_size);

        Ok(())
    }
/// Triggers the resize of the screen.
Triggers the resize of the screen.
Triggers the resize of the screen .
async fn resize(
        &mut self,
        new_size: Vec2,
        stdout: &mut LockedStdout<'terminal>,
    ) -> io::Result<()> {
        let buf = format!(
            "{}{}{}",
            crossterm::style::SetForegroundColor(
                crossterm::style::Color::White
            ),
            crossterm::style::SetBackgroundColor(
                crossterm::style::Color::Black
            ),
            crossterm::terminal::Clear(crossterm::terminal::ClearType::All)
        );
        stdout.write_and_flush(buf.as_bytes()).await?;
        self.buffer.resize(new_size);
        Ok(())
    }
async fn resize ( & mut self , new_size : Vec2 , stdout : & mut LockedStdout < ' terminal > , ) -> io :: Result < ( ) > { let buf = format ! ( " " crossterm style SetForegroundColor ( crossterm style Color White ) crossterm style SetBackgroundColor ( crossterm style Color Black ) crossterm terminal Clear ( crossterm terminal ClearType All ) ) ; stdout . write_and_flush ( buf . as_bytes ( ) ) . await ? ; self . buffer . resize ( new_size ) ; Ok ( ( ) ) }
Triggers the resize of the screen.
Triggers the resize of the screen .
&mut self
new_size
Vec2
stdout
&mut LockedStdout<'terminal>
&mut self
new_size
Vec2
stdout
&mut LockedStdout<'terminal>