logo

xcd-rgb

colorful hex dump (RGB edition) git clone https://anongit.hacktivis.me/git/xcd-rgb.git

README.md (1046B)


  1. # xcd - colorful hex dump (RGB edition)
  2. ```
  3. SPDX-FileCopyrightText: 2025 Haelwenn (lanodan) Monnier <contact+xcd-rgb@hacktivis.me>
  4. SPDX-License-Identifier: MPL-2.0
  5. ```
  6. Prints a colorized hexdump where each value has a different color.
  7. ![screenshot of xcd printing it's first 512 bytes](./xcd_screenshot.png)
  8. Inspired by <https://www.muppetlabs.com/~breadbox/software/xcd.html>
  9. which uses 256-color, while this implementation uses
  10. 24 bit/8 bit-per-pixel RGB via ISO/IEC 8613-6 SGR 38/SGR 48 with
  11. parameter 2 (direct RGB color), as implemented by most terminals.
  12. ## Dependencies
  13. * C99 Compiler (gcc, clang, tcc, …)
  14. * POSIX.1-2008 (make, libc)
  15. ## Packaging
  16. * tarballs: <https://distfiles.hacktivis.me/releases/xcd-rgb/>
  17. * public keys used for signing the tarballs: <https://distfiles.hacktivis.me/releases/signify/>
  18. * compiling: `make`
  19. * installing (DESTDIR supported): `make install`
  20. Or in case a conflict with the original `xcd` would be unwarranted:
  21. * compiling: `make xcd-rgb`
  22. * installing (DESTDIR supported): `make install-rgb`