From bdcc3c9d0d2bd09e3f1aa4fb73a08136db69280b Mon Sep 17 00:00:00 2001 From: chris west Date: Mon, 13 Jan 2020 15:03:06 -0800 Subject: [PATCH] Raw mode works the same with or without a tty --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 3d68f19..ddd2d01 100644 --- a/src/args.rs +++ b/src/args.rs @@ -176,7 +176,7 @@ pub fn parse>(args: &[T]) -> Result { #[cfg(not(test))] { - if !atty::is(atty::Stream::Stdout) { + if !atty::is(atty::Stream::Stdout) && cfg.mode != Mode::Raw { cfg.mode = Mode::NoTTY; } }