fn shift_buffer(&mut self) {
        (1..BUFFER_HEIGHT).into_iter().for_each(|row| {
            (0..BUFFER_WIDTH).into_iter().for_each(|col| {
                let char = self.get_char_at(row, col);
                self.put_char_at(char, row - 1, col);
            })
        });

        self.clear_row(BUFFER_HEIGHT - 1);
    }
/// Shifts all lines one line up and clears the last row.
Shifts all lines one line up and clears the last row.
Shifts all lines one line up and clears the last row .
fn shift_buffer(&mut self) {
        (1..BUFFER_HEIGHT).into_iter().for_each(|row| {
            (0..BUFFER_WIDTH).into_iter().for_each(|col| {
                let char = self.get_char_at(row, col);
                self.put_char_at(char, row - 1, col);
            })
        });
        self.clear_row(BUFFER_HEIGHT - 1);
    }
fn shift_buffer ( & mut self ) { ( 1 .. BUFFER_HEIGHT ) . into_iter ( ) . for_each ( | row | { ( 0 .. BUFFER_WIDTH ) . into_iter ( ) . for_each ( | col | { let char = self . get_char_at ( row , col ) ; self . put_char_at ( char , row - 1 , col ) ; } ) } ) ; self . clear_row ( BUFFER_HEIGHT - 1 ) ; }
Shifts all lines one line up and clears the last row.
Shifts all lines one line up and clears the last row .
&mut self
&mut self