hexplay
hexplay copied to clipboard
feature request: colorization and side labels
Hello!
Great crate :)
So, I'm thinking about two features, first:
- Would it be possible to support colorizing sub ranges of the hextable, e.g.:
00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 4d 00 00 |.............M..|
00000130 00 03 00 04 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000140 00 00 00 00 00 6f 00 00 00 03 00 05 00 00 00 00 |.....o..........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 |.............3..|
00000160 00 12 00 03 00 00 00 00 00 00 00 00 00 0b 00 00 |................|
00000170 00 00 00 00 00 58 00 00 00 12 00 04 00 00 00 00 |.....X..........|
00000180 00 00 00 00 00 28 00 00 00 00 00 00 00 7b 00 00 |.....(.......{..|
Specifically, I'd like to the table by doing something like table.colorize(10..100, Red)
, where the color format is something perhaps from termion, etc., and then the range from 10..100 is colorized.
- I'd like to put labels (with optional color) to the right of the ascii:
00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 4d 00 00 |.............M..| Some arbitrary text
00000130 00 03 00 04 00 00 00 00 00 00 00 00 00 00 00 00 |................|
How hard would it be to add something like this?
Thanks and keep up the good work!
Looks like labels are the only part of this issue that aren't done yet?
Yes, the colorization part is done (thanks @m4b!). No work has been done on the labels,