Function minus::page_all[][src]

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

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();

    for i in 0..=30 {
        writeln!(output.lines, "{}", i)?;
    }

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