Merge pull request #1066 from gsomix/feature/1061-show-all-redirected

Enable non-printable characters for redirected output
This commit is contained in:
David Peter authored and GitHub committed 2020-07-02 08:21:50 +02:00
commit 3a62e3d188
5 files changed
+30 -7

No files matched your search

BIN
View File
Binary file not shown.
+10
View File
@@ -716,3 +716,13 @@ fn do_not_detect_different_syntax_for_stdin_and_files() {
from_utf8(&cmd_for_stdin.get_output().stdout).expect("output is valid utf-8")
);
}
#[test]
fn show_all_mode() {
bat()
.arg("--show-all")
.arg("nonprintable.txt")
.assert()
.stdout("hello•world␊\n├──┤␍␀␇␈␛")
.stderr("");
}