From 5ae0784aee5845f617097a05df6cfaabac05457f Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Tue, 22 May 2018 18:38:59 +0200 Subject: [PATCH] Fix launching of pager so all control characters are interpreted. Fix launching of pager so all control characters are interpreted instead of only ANSI "color" escape sequences. This fixes issue https://github.com/sharkdp/bat/issues/98 --- src/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.rs b/src/output.rs index 4613f62b49..0ac723c1cc 100644 --- a/src/output.rs +++ b/src/output.rs @@ -20,7 +20,7 @@ impl OutputType { /// Try to launch the pager. Fall back to stdout in case of errors. fn try_pager(quit_if_one_screen: bool) -> Self { - let mut args = vec!["--RAW-CONTROL-CHARS", "--no-init"]; + let mut args = vec!["--raw-control-chars", "--no-init"]; if quit_if_one_screen { args.push("--quit-if-one-screen"); }