pub fn page_all(pager: Pager) -> Result<(), MinusError>
This is supported on crate feature
static_output
only.Expand description
Display static information to the screen
Since it is sure that fed data will never change, minus can do some checks like:-
- If stdout is not a tty, minus not start a pager. It will simply print all the data and quit
- If there are more rows in the terminal than the number of lines of data to display
minus will not start a pager and simply display all data on the main stdout screen.
This behaviour can be turned off if
Pager::set_run_no_overflow(true)
has been called before starting - Since any other event except user inputs will not occur, we can do some optimizations on matching events.
See example on how to use this functon.
Panics
This function will panic if another instance of minus is already running.
Errors
The function will return with an error if it encounters a error during paging.