Repository: sharkdp/bat (language: rust)

Issue:
Weird behavior with control characters
With following file
```
$ hexdump -C /tmp/a
00000000  1b 5b 3f 32 35 6c 1b 37  1b 37 1b 5d 30 3b 2f 74  |.[?25l.7.7.]0;/t|
00000010  6d 70 07 0a 1b 5b 33 34  6d 2f 74 6d 70 1b 5b 33  |mp...[34m/tmp.[3|
00000020  39 6d 0a 0d 1b 5b 33 35  6d e2 9d af 1b 5b 33 39  |9m...[35m....[39|
00000030  6d 20 1b 5b 3f 31 32 6c  1b 5b 3f 32 35 68 1b 5b  |m .[?12l.[?25h.[|
00000040  3f 32 35 6c 1b 38 1b 5b  3f 31 32 6c 1b 5b 3f 32  |?25l.8.[?12l.[?2|
00000050  35 68 1b 5d 30 3b 74 6d  70 3a 20 65 78 69 74 07  |5h.]0;tmp: exit.|
00000060
```
I get really weird behavior.

`alacritty -e dash`:
![image](https://user-images.githubusercontent.com/33450373/147375621-97473688-85cc-4c9b-b729-9010bd2343c5.png)
`alacritty -e bash`:
![image](https://user-images.githubusercontent.com/33450373/147375629-d0a5cad8-26cc-46c6-9a3f-b93433083498.png)

With `-A` no weird control characters seem to be getting through:
`alacritty -e dash`:
![image](https://user-images.githubusercontent.com/33450373/147375647-ad2e1819-af9a-4695-8432-fd481f5061c4.png)

Is `bat` supposed to let these control characters through like this or filter those? It looks a bit alarming if a user could craft a file that would look empty with `bat file` but actually contain stuff in `bat -A file` (although that kind of behavior would be consistent with `cat` :D)


Discussion / hints:
Consistency with cat is an important feature of bat. Also see https://github.com/sharkdp/bat#garbled-output
This looks like intended behavior in that case! I only searched for "control characters" in the docs so I couldn't find that part in the `README.md`, my bad. Thanks!

Fix patch:
diff --git a/README.md b/README.md
index 7d1fb4938c..26ed29e116 100644
--- a/README.md
+++ b/README.md
@@ -676,7 +676,7 @@ bat() {
 
 ### Garbled output
 
-If an input file contains color codes or other ANSI escape sequences, `bat` will have problems
+If an input file contains color codes or other ANSI escape sequences or control characters, `bat` will have problems
 performing syntax highlighting and text wrapping, and thus the output can become garbled.
 When displaying such files it is recommended to disable both syntax highlighting and wrapping by
 passing the `--color=never --wrap=never` options to `bat`.


Test patch: