[][src]Struct pager::Pager

pub struct Pager { /* fields omitted */ }

Keeps track of the current pager state

Implementations

impl Pager[src]

pub fn new() -> Self[src]

Creates new instance of Pager with default settings

pub fn with_env(env: &str) -> Self[src]

Creates new instance of pager using env environment variable instead of PAGER

pub fn env(env: &str) -> Self[src]

👎 Deprecated since 0.12.0:

use with_env() instead

pub fn with_default_pager<S>(pager: S) -> Self where
    S: Into<OsString>, 
[src]

Creates a new Pager instance with the specified default fallback

pub fn with_pager(pager: &str) -> Self[src]

Creates a new Pager instance directly specifying the desired pager

pub fn pager_envs(
    self,
    envs: impl IntoIterator<Item = impl Into<OsString>>
) -> Self
[src]

Launch pager with the specified environment variables

pub fn skip_on_notty(self) -> Self[src]

👎 Deprecated since 0.14.0:

'skip_on_notty' is default now

Instructs Pager to bypass invoking pager if output is not a tty

pub fn is_on(&self) -> bool[src]

Gives quick assessment of successful Pager setup

pub fn setup(&mut self)[src]

Initiates Pager framework and sets up all the necessary environment for sending standard output to the activated pager.

Trait Implementations

impl Debug for Pager[src]

impl Default for Pager[src]

Auto Trait Implementations

impl RefUnwindSafe for Pager

impl Send for Pager

impl Sync for Pager

impl Unpin for Pager

impl UnwindSafe for Pager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.