Closed FauxFaux closed 5 years ago
hexyl appears to print the "header" (the top of the box) too soon.
hexyl
If you have an app that thinks before printing output (e.g. gpg), it is unnecessarily ugly.
gpg
Something like this:
% (echo Er... >&2; sleep 0.2; \ echo Thinking... >&2; sleep 0.2; \ echo Um... >&2; sleep 0.2; \ echo Output, finally; \ echo 'Done!' >&2) | hexyl
Typically (it's racy!) looks like:
Er... ┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐ Thinking... Um... Done! │00000000│ 4f 75 74 70 75 74 2c 20 ┊ 66 69 6e 61 6c 6c 79 0a │Output, ┊finally_│ └────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
I'd rather it showed:
Er... Thinking... Um... ┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐ │00000000│ 4f 75 74 70 75 74 2c 20 ┊ 66 69 6e 61 6c 6c 79 0a │Output, ┊finally_│ └────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘ Done!
Gaming the thinking is probably easy. Gaming the Done! is probably impossible. (gpg doesn't print the done.)
Done!
Sounds good to me.
Fixed by @mziter in #51.
hexyl
appears to print the "header" (the top of the box) too soon.If you have an app that thinks before printing output (e.g.
gpg
), it is unnecessarily ugly.Something like this:
Typically (it's racy!) looks like:
I'd rather it showed:
Gaming the thinking is probably easy. Gaming the
Done!
is probably impossible. (gpg
doesn't print the done.)