Variable width output
tomtastic opened this issue Β· 4 comments
tomtastic commented
Submission type
- Request for enhancement
I'd like to be able to adjust the width of the output from the current 2x8 format to a chosen width or be possibly redraw to match the console width on a SIGWINCH?
tomtastic commented
Thank you!
tomtastic commented
Widths beyond 16 don't format the bytes equally, with the first 16 getting each byte space separated, and all following groups of 16 bytes printed without space separators.
$ for a in 16 24 32;do ./heksa -w $a heksa|head -3;echo;done
000000βcf fa ed fe 07 00 00 01 03 00 00 00 02 00 00 00β.....ΓΓ. .ΓΓΓ.ΓΓΓ
000010β0a 00 00 00 b8 06 00 00 00 00 00 00 00 00 00 00ββ²ΓΓΓ..ΓΓ ΓΓΓΓΓΓΓΓ
000020β19 00 00 00 48 00 00 00 5f 5f 50 41 47 45 5a 45β.ΓΓΓHΓΓΓ __PAGEZE
000000βcf fa ed fe 07 00 00 01 03 00 00 00 02 00 00 00 0a000000b8060000β.....ΓΓ. .ΓΓΓ.ΓΓΓ β²ΓΓΓ..ΓΓ
000018β00 00 00 00 00 00 00 00 19 00 00 00 48 00 00 00 5f5f504147455a45βΓΓΓΓΓΓΓΓ .ΓΓΓHΓΓΓ __PAGEZE
000030β52 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000000100000000βROΓΓΓΓΓΓ ΓΓΓΓΓΓΓΓ ΓΓΓ.ΓΓΓΓ
000000βcf fa ed fe 07 00 00 01 03 00 00 00 02 00 00 00 0a000000b8060000 0000000000000000β.....ΓΓ. .ΓΓΓ.ΓΓΓ β²ΓΓΓ..ΓΓ ΓΓΓΓΓΓΓΓ
000020β19 00 00 00 48 00 00 00 5f 5f 50 41 47 45 5a 45 524f000000000000 0000000000000000β.ΓΓΓHΓΓΓ __PAGEZE ROΓΓΓΓΓΓ ΓΓΓΓΓΓΓΓ
000040β00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 0000000000000000 0000000000000000βΓΓΓ.ΓΓΓΓ ΓΓΓΓΓΓΓΓ ΓΓΓΓΓΓΓΓ ΓΓΓΓΓΓΓΓ