mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-27 07:02:09 +01:00
README.md: Add 'Garbled output' to 'Troubleshooting' (#1937)
As per #234, #403, #1572, #1823 and #1897, this commit clarifies that `bat` cannot properly handle escape sequences. Signed-off-by: Isabella Basso <isabbasso@riseup.net>
This commit is contained in:
parent
194e7bbcd1
commit
59d4cfb75c
@ -674,6 +674,13 @@ bat() {
|
|||||||
|
|
||||||
## Troubleshooting
|
## 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
|
### Terminals & colors
|
||||||
|
|
||||||
`bat` handles terminals *with* and *without* truecolor support. However, the colors in most syntax
|
`bat` handles terminals *with* and *without* truecolor support. However, the colors in most syntax
|
||||||
|
Loading…
Reference in New Issue
Block a user