pub fn clear(&mut self) -> io::Result<()> {
        BUFFER.with(|output_buf| {
            output_buf.append(clear::All.as_ref());
            output_buf.append(String::from(cursor::Goto(1,1)).as_bytes());
        });

        self.term_cursor_line = 1;
        self.no_newline = true;
        self.clear_search();
        self.display()
    }
/// Clears the screen then prints the prompt and current buffer.
Clears the screen then prints the prompt and current buffer.
Clears the screen then prints the prompt and current buffer .
pub fn clear(&mut self) -> io::Result<()> {
        BUFFER.with(|output_buf| {
            output_buf.append(clear::All.as_ref());
            output_buf.append(String::from(cursor::Goto(1,1)).as_bytes());
        });
        self.term_cursor_line = 1;
        self.no_newline = true;
        self.clear_search();
        self.display()
    }
pub fn clear ( & mut self ) -> io :: Result < ( ) > { BUFFER . with ( | output_buf | { output_buf . append ( clear :: All . as_ref ( ) ) ; output_buf . append ( String :: from ( cursor :: Goto ( 1 , 1 ) ) . as_bytes ( ) ) ; } ) ; self . term_cursor_line = 1 ; self . no_newline = true ; self . clear_search ( ) ; self . display ( ) }
Clears the screen then prints the prompt and current buffer.
Clears the screen then prints the prompt and current buffer .
&mut self
&mut self