pub fn print_shell(&mut self) -> Result<(), Error> {
        write!(self.stdout, "D:{} N:{}{} {}>>{} ",
            self.scheduler.due_cards(),
            self.scheduler.new_cards(),
            if self.scheduler.prefer_new { "-" } else { "" },
            color::Fg(color::Red),
            color::Fg(color::Reset),
        )?;
        // Print it immediately.
        self.stdout.flush()?;
        Ok(())
    }
/// Print the shell, that is, the text before the command input.
Print the shell, that is, the text before the command input.
Print the shell that is the text before the command input .
pub fn print_shell(&mut self) -> Result<(), Error> {
        write!(self.stdout, "D:{} N:{}{} {}>>{} ",
            self.scheduler.due_cards(),
            self.scheduler.new_cards(),
            if self.scheduler.prefer_new { "-" } else { "" },
            color::Fg(color::Red),
            color::Fg(color::Reset),
        )?;
        // Print it immediately.
        self.stdout.flush()?;
        Ok(())
    }
pub fn print_shell ( & mut self ) -> Result < ( ) , Error > { write ! ( self stdout " " self scheduler due_cards ( ) self scheduler new_cards ( ) if self scheduler prefer_new { " " } else { " " } color Fg ( color Red ) color Fg ( color Reset ) ) ? ; // Print it immediately. self . stdout . flush ( ) ? ; Ok ( ( ) ) }
Print the shell, that is, the text before the command input.
Print the shell that is the text before the command input .
&mut self
&mut self