pub async fn pre_loop(
        &mut self,
        initial_size: Vec2,
    ) -> Result<(), Error> {
        let mut screen = self.shared.screen().lock().await;
        let min_size = screen.min_size();
        if initial_size.x < min_size.x || initial_size.y < min_size.y {
            screen.check_resize(initial_size, &mut self.stdout_guard).await?;
            let evt = ResizeEvent { size: None };
            self.send(Event::Resize(evt));
        }
        Ok(())
    }
/// Executes the pre-"reactor loop" functions, handling the initial screen
/// size and correctly dealing with the fact that it is invalid, if it is.
Executes the pre-"reactor loop" functions, handling the initial screen
size and correctly dealing with the fact that it is invalid, if it is.
Executes the pre - " reactor loop " functions handling the initial screen size and correctly dealing with the fact that it is invalid if it is .
pub async fn pre_loop(
        &mut self,
        initial_size: Vec2,
    ) -> Result<(), Error> {
        let mut screen = self.shared.screen().lock().await;
        let min_size = screen.min_size();
        if initial_size.x < min_size.x || initial_size.y < min_size.y {
            screen.check_resize(initial_size, &mut self.stdout_guard).await?;
            let evt = ResizeEvent { size: None };
            self.send(Event::Resize(evt));
        }
        Ok(())
    }
pub async fn pre_loop ( & mut self , initial_size : Vec2 , ) -> Result < ( ) , Error > { let mut screen = self . shared . screen ( ) . lock ( ) . await ; let min_size = screen . min_size ( ) ; if initial_size . x < min_size . x || initial_size . y < min_size . y { screen . check_resize ( initial_size , & mut self . stdout_guard ) . await ? ; let evt = ResizeEvent { size : None } ; self . send ( Event :: Resize ( evt ) ) ; } Ok ( ( ) ) }
Executes the pre-"reactor loop" functions, handling the initial screen
size and correctly dealing with the fact that it is invalid, if it is.
Executes the pre - " reactor loop " functions handling the initial screen size and correctly dealing with the fact that it is invalid if it is .
&mut self
initial_size
Vec2
&mut self
initial_size
Vec2