sharkdp / hexyl

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

hexyl output fail when piped through more #32

Closed mhewett-ks closed 5 years ago

mhewett-ks commented 5 years ago
hexyl-more-fail-2019-01-11

This is on Mac OS 10.14.2 in the bash shell.
Installed today with 'brew install hexyl'

kilobyte commented 5 years ago

This is a case of #30 — many tools are not capable of accepting ANSI codes.

Besides, may I ask why do you even use more this millenium? It has been obsoleted by less mere 35 years ago. But even less doesn't default to accepting ANSI, you need to specify less -R.

The core issue is real; almost all other programs won't write color when redirected. It's debatable only because hexyl's value is the coloring — without it, you're probably better off using hd instead, as the latter can do anything that hexyl can, plus more. But then, most of hd's features are pointless these days.

sharkdp commented 5 years ago

Let's continue this discussion in #30.