As can be seen in the attached screenshot, all those unprintable characters are highlighted in white. When searching a binary file, this makes the result far less visible since it is also highlighted in white.
Is there any way to remove that white highlighting from unprintable characters?
How to prevent "less" from highlighting unprintable characters?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: How to prevent "less" from highlighting unprintable characters?
You can set the color of control characters to the color of the reset of the text. Like so:
If you consult the less manpage and search for "-Dxcolor" you can find the full description of that -DC option.
less --use-color -DC /file/to/view
If you consult the less manpage and search for "-Dxcolor" you can find the full description of that -DC option.