Struct pager::Pager [−][src]
pub struct Pager { /* fields omitted */ }
Keeps track of the current pager state
Methods
impl Pager
[src]
impl Pager
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates new instance of Pager
with default settings
pub fn with_env(env: &str) -> Self
[src]
pub fn with_env(env: &str) -> Self
Creates new instance of pager using env
environment variable instead of PAGER
pub fn env(env: &str) -> Self
[src]
pub fn env(env: &str) -> Self
Deprecated since 0.12.0
: use with_env() instead
pub fn with_default_pager<S>(pager: S) -> Self where
S: Into<OsString>,
[src]
pub fn with_default_pager<S>(pager: S) -> Self where
S: Into<OsString>,
Creates a new Pager
instance with the specified default fallback
pub fn with_pager(pager: &str) -> Self
[src]
pub fn with_pager(pager: &str) -> Self
Creates a new Pager
instance directly specifying the desired pager
pub fn skip_on_notty(self) -> Self
[src]
pub fn skip_on_notty(self) -> Self
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]
pub fn is_on(&self) -> bool
Gives quick assessment of successful Pager
setup
pub fn setup(&mut self)
[src]
pub fn setup(&mut self)
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 Debug for Pager
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Pager
[src]
impl Default for Pager