fn update_grid_size(&mut self) {
        let (width, height) = size().expect("size()");
        self.grid.set_height_chars(height);
        self.grid.set_width_chars(width);
    }
/// Updates the grid size based on the terminal size.
Updates the grid size based on the terminal size.
Updates the grid size based on the terminal size .
fn update_grid_size(&mut self) {
        let (width, height) = size().expect("size()");
        self.grid.set_height_chars(height);
        self.grid.set_width_chars(width);
    }
fn update_grid_size ( & mut self ) { let ( width , height ) = size ( ) . expect ( " " ) ; self . grid . set_height_chars ( height ) ; self . grid . set_width_chars ( width ) ; }
Updates the grid size based on the terminal size.
Updates the grid size based on the terminal size .
&mut self
&mut self