fn clear_draw(&mut self) -> Result<()> {
        if self.draw_state.altscreen {
            self.write.queue(MoveTo(0, 0))?;
            self.write.queue(Clear(ClearType::All))?;
        } else {
            self.move_to_frame_base()?;
            self.write.queue(Clear(ClearType::FromCursorDown))?;
        }

        self.draw_state = DrawState::default();

        Ok(())
    }
/// Clear the drawn prompt on the screen.
Clear the drawn prompt on the screen.
Clear the drawn prompt on the screen .
fn clear_draw(&mut self) -> Result<()> {
        if self.draw_state.altscreen {
            self.write.queue(MoveTo(0, 0))?;
            self.write.queue(Clear(ClearType::All))?;
        } else {
            self.move_to_frame_base()?;
            self.write.queue(Clear(ClearType::FromCursorDown))?;
        }
        self.draw_state = DrawState::default();
        Ok(())
    }
fn clear_draw ( & mut self ) -> Result < ( ) > { if self . draw_state . altscreen { self . write . queue ( MoveTo ( 0 , 0 ) ) ? ; self . write . queue ( Clear ( ClearType :: All ) ) ? ; } else { self . move_to_frame_base ( ) ? ; self . write . queue ( Clear ( ClearType :: FromCursorDown ) ) ? ; } self . draw_state = DrawState :: default ( ) ; Ok ( ( ) ) }
Clear the drawn prompt on the screen.
Clear the drawn prompt on the screen .
&mut self
&mut self