diff --git a/README.md b/README.md index 8db781c5..84657d53 100644 --- a/README.md +++ b/README.md @@ -674,6 +674,13 @@ bat() { ## Troubleshooting +### Garbled output + +If an input file contains color codes or other ANSI escape sequences, `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`. + ### Terminals & colors `bat` handles terminals *with* and *without* truecolor support. However, the colors in most syntax