hexyl icon indicating copy to clipboard operation
hexyl copied to clipboard

specify bytes per line?

Open milnak opened this issue 1 year ago • 3 comments

Maybe I'm missing how, but I can't find a way to specify how many bytes per line.

> hexyl .\zipflop.bat
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 40 65 63 68 6f 20 6f 66 ┊ 66 0d 0a 69 66 20 25 31 │@echo of┊f__if %1│

has 16-bytes per line

> hexyl --panels 1 .\zipflop.bat
┌────────┬─────────────────────────┬────────┐
│00000000│ 40 65 63 68 6f 20 6f 66 │@echo of│

8 bytes per line.

Any way to have a single panel with 16 bytes per line, for example?

milnak avatar Oct 31 '24 20:10 milnak

Looks like there's no option to change it from 8 bytes per panel. I do have a draft PR (#149) which adds the ability to remove the separators between panes (amongst a few other formatting options), but it's quite out of date (a bunch of PRs with new features (like the --panels option) that change the same code have been merged since). I might have another look at it soon.

Aaron-Rumpler avatar Nov 01 '24 08:11 Aaron-Rumpler

Additionally, it would be nice to be able to break every n bytes, for instance you want to see frames of 50 bytes, then you could specify break at 50 so that each frame start is neatly aligned.

Guigui220D avatar Dec 21 '24 17:12 Guigui220D

Seconding this. I recently was trying to deal with a dump of output that I knew from the spec had exactly 74 bytes frames and I couldn't for the life of me figure out how to get hexyl to display in 74 bytes per line.

darkliquid avatar Mar 02 '25 08:03 darkliquid