pub fn prompt<S: AsRef<str>>(&self, msg: S) -> io::Result<String> {
        self.print_sameline(msg.as_ref().blue(), QUESTION_PREFIX_MARKER, false);
        let mut user_input = String::new();
        stdout().flush()?;
        stdin().read_line(&mut user_input)?;

        Ok(String::from(user_input.trim()))
    }
/// Displays a prompt. `msg` will be printed in blue, prefixed by a '?'.
/// Will wait for user input before returning what the user typed.
Displays a prompt. `msg` will be printed in blue, prefixed by a '?'.
Will wait for user input before returning what the user typed.
Displays a prompt . ` msg ` will be printed in blue prefixed by a ' ? ' . Will wait for user input before returning what the user typed .
pub fn prompt<S: AsRef<str>>(&self, msg: S) -> io::Result<String> {
        self.print_sameline(msg.as_ref().blue(), QUESTION_PREFIX_MARKER, false);
        let mut user_input = String::new();
        stdout().flush()?;
        stdin().read_line(&mut user_input)?;
        Ok(String::from(user_input.trim()))
    }
pub fn prompt < S : AsRef < str > > ( & self , msg : S ) -> io :: Result < String > { self . print_sameline ( msg . as_ref ( ) . blue ( ) , QUESTION_PREFIX_MARKER , false ) ; let mut user_input = String :: new ( ) ; stdout ( ) . flush ( ) ? ; stdin ( ) . read_line ( & mut user_input ) ? ; Ok ( String :: from ( user_input . trim ( ) ) ) }
Displays a prompt.
Displays a prompt .
&self
msg
S