mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-27 21:28:18 +00:00
def066ff9217fb4b330872332e3e47043880bc9a
Consider equality for first and last character of a line. If the first or last character of a line is not equal to previous character, the state machine should be set back to probe as the line should not be squeezed. The unit tests has been expanded for testing the use case described in #62. Further the body of all unit tests has been simplified. Fixes #62
hexyl is a simple hex viewer for the terminal. It uses a colored output to distinguish different categories
of bytes (NULL bytes, printable ASCII characters, ASCII whitespace characters, other ASCII characters and non-ASCII).
Preview
Installation
On Debian-based systems
wget "https://github.com/sharkdp/hexyl/releases/download/v0.5.0/hexyl_0.5.0_amd64.deb"
sudo dpkg -i hexyl_0.5.0_amd64.deb
On Arch Linux
You can install hexyl from the official package repository:
pacman -S hexyl
On macOS
brew install hexyl
On FreeBSD
pkg install hexyl
Via Nix
nix-env -i hexyl
On other distributions
Check out the release page for binary builds.
On Windows
For now, you will have to install from source via cargo (see below). Make sure that
you use a terminal that supports ANSI escape sequences (like PowerShell on Windows 10).
Via cargo
If you have Rust 1.31 or higher, you can install hexyl from source via cargo:
cargo install hexyl
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Languages
Rust
100%



