pub fn run(mut self) {
        // Start the mainloop, which will not exit until Sapling is ready to close
        self.mainloop();
        // Show the cursor before closing so that the cursor isn't permanently disabled
        // (see issue `lotabout/tuikit#28`: https://github.com/lotabout/tuikit/issues/28)
        log::trace!("Making the cursor reappear.");
        crossterm::execute!(
            self.term.backend_mut(),
            terminal::LeaveAlternateScreen,
            cursor::Show
        )
        .unwrap();
        terminal::disable_raw_mode().unwrap();
    }
/// Start the editor and enter the mainloop
Start the editor and enter the mainloop
Start the editor and enter the mainloop
pub fn run(mut self) {
        // Start the mainloop, which will not exit until Sapling is ready to close
        self.mainloop();
        // Show the cursor before closing so that the cursor isn't permanently disabled
        // (see issue `lotabout/tuikit#28`: https://github.com/lotabout/tuikit/issues/28)
        log::trace!("Making the cursor reappear.");
        crossterm::execute!(
            self.term.backend_mut(),
            terminal::LeaveAlternateScreen,
            cursor::Show
        )
        .unwrap();
        terminal::disable_raw_mode().unwrap();
    }
pub fn run ( mut self ) { // Start the mainloop, which will not exit until Sapling is ready to close self . mainloop ( ) ; // Show the cursor before closing so that the cursor isn't permanently disabled // (see issue `lotabout/tuikit#28`: https://github.com/lotabout/tuikit/issues/28) log :: trace ! ( " " ) ; crossterm :: execute ! ( self term backend_mut ( ) terminal LeaveAlternateScreen cursor Show ) . unwrap ( ) ; terminal :: disable_raw_mode ( ) . unwrap ( ) ; }
Start the editor and enter the mainloop
Start the editor and enter the mainloop
mut self
mut self