Skip to content

Commit

Permalink
Fix launching of pager so all control characters are interpreted.
Browse files Browse the repository at this point in the history
Fix launching of pager so all control characters are interpreted
instead of only ANSI "color" escape sequences.

This fixes issue sharkdp#98
  • Loading branch information
ghuls committed May 22, 2018
1 parent 2712d63 commit 5ae0784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5ae0784

Please sign in to comment.