Add option to disable printing 0 bytes as ascii 0.
martinlindhe opened this issue · comments
Consider the following output
The right column present ASCII values of the hex column.
In the case of null bytes (value 0), they are printed as ascii 0 in the right column.
This is confusing to say the least. Consider for example the case of no color (it text after all. User will copy & paste it elsewhere):
As a comparison, here is xxd output, where they denote non-printable characters with a period instead:
I did not find any command line arguments to disable this.
I would like to request a mode of hexyl to print non-printable characters in a similar manner as xxd does it. Specifically I would like it to not insert printable ascii that does not belong in the ascii printout:
- 0
- _
- •
And possibly more.
Good point, thank you. See discussion in #169