Function minus::page_all[][src]

pub fn page_all(p: Pager) -> Result<(), PageAllError>
Expand description

Outputs static information.

Once called, the Pager passed to this function can never be changed. If you want dynamic information:

Errors

Several operations can fail when outputting information to a terminal, see the Result type.

Example

use std::fmt::Write;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut output = minus::Pager::new().unwrap();

    for i in 0..=30 {
        output.push_str(format!("{}\n", i));
    }

    minus::page_all(output)?;
    Ok(())
}