sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
8.92k stars 227 forks source link

Added `--plain` `--no-chars` and `--no-position` toggles #154

Closed mkatychev closed 2 years ago

mkatychev commented 2 years ago

New flags added:

OPTIONS:
    -p, --plain                 Display output with --no-chars, --no-position, and
                                --border=none.
    -C, --no-chars              Whether to display the character table on the right.
    -P, --no-position           Whether to display the position indicator on the left.

Motivation was mainly for diffing two separate binary files, borders could be removed but char table and position still created a lot of noise.

Output example:

image
sharkdp commented 2 years ago

Before I proceed to review this: how does this integrate with what is being proposed in #149?

mkatychev commented 2 years ago

Before I proceed to review this: how does this integrate with what is being proposed in #149?

This PR does not toggle separators or modify existing border behaviour, it allows the toggling of the character table (on the right) and the hex position (on the right).