pub fn send_message(&mut self, text: impl Into<String>) {
        let message = text.into();
        if message.contains('\n') {
            panic!("Prompt text cannot contain newlines");
        }
        self.message.0 = Some(wrap_str(&message, self.cols));
        self.message.1 = true;
    }
/// Display a temporary message at the prompt area
///
/// # Panics
/// This function panics if the given text contains newline characters.
/// This is because, the pager reserves only one line for showing the prompt
/// and a newline will cause it to span multiple lines, breaking the display
///
/// Example
/// ```
/// use minus::Pager;
///
/// let mut pager = Pager::new().unwrap();
/// pager.send_message("An error occurred");
/// ```
Display a temporary message at the prompt area
Display a temporary message at the prompt area
pub fn send_message(&mut self, text: impl Into<String>) {
        let message = text.into();
        if message.contains('\n') {
            panic!("Prompt text cannot contain newlines");
        }
        self.message.0 = Some(wrap_str(&message, self.cols));
        self.message.1 = true;
    }
pub fn send_message ( & mut self , text : impl Into < String > ) { let message = text . into ( ) ; if message . contains ( '\n' ) { panic ! ( " " ) ; } self . message . 0 = Some ( wrap_str ( & message , self . cols ) ) ; self . message . 1 = true ; }
Display a temporary message at the prompt area
Display a temporary message at the prompt area
&mut self
text
impl Into<String>
&mut self
text
impl Into<String>
panics
This function panics if the given text contains newline characters.
This is because, the pager reserves only one line for showing the prompt
and a newline will cause it to span multiple lines, breaking the display

Example
```
use minus::Pager.

let mut pager = Pager::new().unwrap();
pager.send_message("An error occurred");
```
This function panics if the given text contains newline characters . This is because the pager reserves only one line for showing the prompt and a newline will cause it to span multiple lines breaking the display Example ` ` ` use minus :: Pager . let mut pager = Pager :: new () . unwrap () ; pager . send_message ( " An error occurred " ) ; ` ` `