summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fd2ee78..2887603 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -126,6 +126,7 @@ impl Pager {
}
/// Instructs `Pager` to bypass invoking pager if output is not a `tty`
+ #[deprecated(since = "0.14.0", note = "'skip_on_notty' is default now")]
pub fn skip_on_notty(self) -> Self {
Self {
skip_on_notty: true,
@@ -133,6 +134,15 @@ impl Pager {
}
}
+ /// Instructs `Pager` to force invoking pager even if output is not a `tty`
+ #[doc(hidden)]
+ pub fn force_on_notty(self) -> Self {
+ Self {
+ skip_on_notty: false,
+ ..self
+ }
+ }
+
/// Gives quick assessment of successful `Pager` setup
pub fn is_on(&self) -> bool {
self.on